Closed solrevdev closed 3 years ago
Can I suggest you replace the app.UseEndpoints(...) code in Program.cs with a nice MapDefaultControllerRoute() oneliner?
app.UseEndpoints(...)
MapDefaultControllerRoute()
More info here https://docs.microsoft.com/en-us/dotnet/api/microsoft.aspnetcore.builder.controllerendpointroutebuilderextensions.mapdefaultcontrollerroute?view=aspnetcore-6.0
Thanks John
Beautiful, thank you.
Can I suggest you replace the
app.UseEndpoints(...)
code in Program.cs with a niceMapDefaultControllerRoute()
oneliner?More info here https://docs.microsoft.com/en-us/dotnet/api/microsoft.aspnetcore.builder.controllerendpointroutebuilderextensions.mapdefaultcontrollerroute?view=aspnetcore-6.0
Thanks John