I created a new WebAPI MVC project, the API controllers have the path http://localhost:1234/api , and they work with this route, but the RegisterRoutes class does not contain default routing, it contains the following:
public static void RegisterRoutes(RouteCollection routes) { routes.IgnoreRoute("{resource}.axd/{*pathInfo}"); routes.MapRoute( name: "Default", url: "{controller}/{action}/{id}", defaults: new { controller = "Home", action = "Index", id = UrlParameter.Optional } ); }
Where is the routing API?
Greetings
Dave
source share