15.5 Using Static URL Segments; Listing 15-11. A URL Pattern with Static Segments in the RouteConfig.cs File
parent
6112f51510
commit
981ebcaf47
|
@ -13,6 +13,9 @@ namespace UrlsAndRoutes
|
|||
{
|
||||
routes.MapRoute("MyRoute", "{controller}/{action}",
|
||||
new { controller = "Home", action = "Index" });
|
||||
|
||||
routes.MapRoute("", "Public/{controller}/{action}",
|
||||
new { controller = "Home", action = "Index" });
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue