15.5 Using Static URL Segments; Listing 15-13. Mixing Static URL Segments and Default Values in the RouteConfig.cs File
parent
2ea5c23a4d
commit
7e57cd2d16
|
@ -11,6 +11,9 @@ namespace UrlsAndRoutes
|
|||
{
|
||||
public static void RegisterRoutes(RouteCollection routes)
|
||||
{
|
||||
routes.MapRoute("ShopSchema", "Shop/{action}",
|
||||
new { controller = "Home" });
|
||||
|
||||
routes.MapRoute("", "X{controller}/{action}");
|
||||
|
||||
routes.MapRoute("MyRoute", "{controller}/{action}",
|
||||
|
|
Loading…
Reference in New Issue