edandersen / core-admin

Fully automatic admin site CRUD UI generator for ASP.NET Core and .NET 8
Other
566 stars 107 forks source link

replace UseEndpoints with app.MapDefaultControllerRoute one liner #27

Closed solrevdev closed 2 years ago

solrevdev commented 2 years ago

Can I suggest you replace the app.UseEndpoints(...) code in Program.cs with a nice MapDefaultControllerRoute() oneliner?

More info here https://docs.microsoft.com/en-us/dotnet/api/microsoft.aspnetcore.builder.controllerendpointroutebuilderextensions.mapdefaultcontrollerroute?view=aspnetcore-6.0

Thanks John

edandersen commented 2 years ago

Beautiful, thank you.