Merge pull request #658 from henkmollema/use-AddMvcWithDefaultRoute

Use AddMvcWithDefaultRoute()
This commit is contained in:
Glenn Condron 2015-06-15 12:33:53 -07:00
commit 8794e3a795
1 changed files with 1 additions and 4 deletions

View File

@ -14,10 +14,7 @@ namespace HelloMvc
{
app.UseErrorPage();
app.UseMvc(routes =>
{
routes.MapRoute("default", "{controller=Home}/{action=Index}/{id?}");
});
app.UseMvcWithDefaultRoute();
app.UseWelcomePage();
}