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 5d7e31d16f
commit 529ef02290
1 changed files with 1 additions and 6 deletions

View File

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