我有以下路线:
routes.MapRoute(
name: "One",
url: "admin/{id}",
defaults: new { controller = "Home", action = "Index", id = UrlParameter.Optional }
);
routes.MapRoute(
name: "Two",
url: "home/{id}",
defaults: new { controller = "Home", action = "Index", id = UrlParameter.Optional }
);
有没有一种方法可以将这些路由组合成一个路由,它们都指向“Home”控制器?