I\'ve the following problem, my route attribute is not working.
I have the following action:
[HttpGet] [Route(\"~api/admin/template/{fileName}\")] pu
In my case, I added Route("api/dashboard") to api controller. Changed it to RoutePrefix("api/dashboard") . And it works perfectly. Also you need config.MapHttpAttributeRoutes(); in webapiconfig.cs
Route("api/dashboard")
RoutePrefix("api/dashboard")
config.MapHttpAttributeRoutes();