Invoke a simpler UseMvc overload in Razor Pages templates

This commit is contained in:
Scott Addie 2017-10-05 21:50:15 -05:00 committed by Steve Sanderson
parent 18feba377f
commit a68c7241b5
1 changed files with 1 additions and 6 deletions

View File

@ -129,12 +129,7 @@ namespace Company.WebApplication1
app.UseAuthentication(); app.UseAuthentication();
#endif #endif
app.UseMvc(routes => app.UseMvc();
{
routes.MapRoute(
name: "default",
template: "{controller}/{action=Index}/{id?}");
});
} }
} }
} }