Use AddMvcWithDefaultRoute()
This commit is contained in:
parent
9f3655a835
commit
256201ac46
|
|
@ -14,10 +14,7 @@ namespace HelloMvc
|
|||
{
|
||||
app.UseErrorPage();
|
||||
|
||||
app.UseMvc(routes =>
|
||||
{
|
||||
routes.MapRoute("default", "{controller=Home}/{action=Index}/{id?}");
|
||||
});
|
||||
app.UseMvcWithDefaultRoute();
|
||||
|
||||
app.UseWelcomePage();
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue