In ASP.NET 4 this was as easy as routes.LowercaseUrls = true;
in the RegisterRoutes
handler for the app.
I cannot find an equivalent in ASP.NET Core for achieving this. I'd think it would be here:
app.UseMvc(configureRoutes =>
{
configureRoutes.MapRoute("Default", "{controller=App}/{action=Index}/{id?}");
});
But nothing in configureRoutes
looks to allow it... unless there's an extension method somewhere that I can't find in the docs perhaps?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…