Last active
November 2, 2021 20:31
-
-
Save fridezlucas/0f401b67f65e28131ba89522761c8fea to your computer and use it in GitHub Desktop.
Medium TypeScript GET+ POST RESTful client - Startup.cs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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