Skip to content

Instantly share code, notes, and snippets.

@fridezlucas
Last active November 2, 2021 20:31
Show Gist options
  • Save fridezlucas/0f401b67f65e28131ba89522761c8fea to your computer and use it in GitHub Desktop.
Save fridezlucas/0f401b67f65e28131ba89522761c8fea to your computer and use it in GitHub Desktop.
Medium TypeScript GET+ POST RESTful client - Startup.cs
// All using...
namespace My.Awesome.Namespace.Api
{
public class Startup
{
// ...
public void ConfigureServices(IServiceCollection services)
{
// ...
}
public void Configure(IApplicationBuilder app, IWebHostEnvironment env)
{
// ...
// ASP.NET Core API will handle X-HTTP-Method-Override header !
app.UseHttpMethodOverride();
app.UseRouting();
app.UseEndpoints(endpoints =>
{
endpoints.MapControllers();
});
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment