Invoke a simpler UseMvc overload in Razor Pages templates
This commit is contained in:
parent
5d7e31d16f
commit
529ef02290
|
|
@ -129,12 +129,7 @@ namespace Company.WebApplication1
|
|||
app.UseAuthentication();
|
||||
|
||||
#endif
|
||||
app.UseMvc(routes =>
|
||||
{
|
||||
routes.MapRoute(
|
||||
name: "default",
|
||||
template: "{controller}/{action=Index}/{id?}");
|
||||
});
|
||||
app.UseMvc();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue