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