I\'ve the following problem, my route attribute is not working.
I have the following action:
[HttpGet] [Route(\"~api/admin/template/{fileName}\")] pu
Try this routing in your WebApiConfig
WebApiConfig
// Web API routes config.MapHttpAttributeRoutes(); config.Routes.MapHttpRoute( name: "DefaultApi", routeTemplate: "api/{controller}/{id}", defaults: new { id = RouteParameter.Optional } );
You have to add RoutePrefix.
RoutePrefix