Invoke a simpler UseMvc overload in Razor Pages templates
This commit is contained in:
parent
18feba377f
commit
a68c7241b5
|
|
@ -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?}");
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue