Skip to content

Commit 4819c7e

Browse files
committed
Explicitly included rootTopic parameter name
This is a bit silly, but in addition to adding to the intuition about the underlying route parameters, this prevents the aligned comments from being misaligned due to Visual Studio's (optional) parameter hints.
1 parent 38694c4 commit 4819c7e

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

OnTopic.AspNetCore.Mvc.Host/Program.cs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,9 +70,11 @@
7070
app.MapImplicitAreaControllerRoute(); // {area:exists}/{action=Index}
7171
app.MapDefaultAreaControllerRoute(); // {area:exists}/{controller}/{action=Index}/{id?}
7272
app.MapTopicAreaRoute(); // {area:exists}/{**path}
73+
74+
app.MapTopicErrors(rootTopic: "Error"); // Error/{statusCode}
7375
app.MapDefaultControllerRoute(); // {controller=Home}/{action=Index}/{id?}
74-
app.MapTopicRoute("Web"); // Web/{**path}
75-
app.MapTopicRoute("Error"); // Error/{**path}
76+
app.MapTopicRoute(rootTopic: "Web"); // Web/{**path}
77+
app.MapTopicRoute(rootTopic: "Error"); // Error/{**path}
7678
app.MapTopicSitemap(); // Sitemap
7779
app.MapTopicRedirect(); // Topic/{topicId}
7880
app.MapControllers();

0 commit comments

Comments
 (0)