haacked / feedback

Ask @haacked anything!
7 stars 1 forks source link

Attributed routes not showing up in your Route Debugger #227

Open pjhLongview opened 1 year ago

pjhLongview commented 1 year ago

I have attribute routing enabled: ` public static class WebApiConfig { public static void Register(HttpConfiguration config) { config.MapHttpAttributeRoutes();

        //Convention-based Routing
        config.Routes.MapHttpRoute(
           "1",
           routeTemplate: "api/{controller}/{id}",
           defaults: new { id = RouteParameter.Optional });

    }

}

but none of my controllers that have the decoration "Route("....") show up in your table. All the convention-based routes show up. Am I missing something? Thanks.