Skip to content

Commit 256201a

Browse files
committed
Use AddMvcWithDefaultRoute()
1 parent 9f3655a commit 256201a

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

samples/latest/HelloMvc/Startup.cs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,7 @@ public void Configure(IApplicationBuilder app)
1414
{
1515
app.UseErrorPage();
1616

17-
app.UseMvc(routes =>
18-
{
19-
routes.MapRoute("default", "{controller=Home}/{action=Index}/{id?}");
20-
});
17+
app.UseMvcWithDefaultRoute();
2118

2219
app.UseWelcomePage();
2320
}

0 commit comments

Comments
 (0)