Posted 4 October 2017, 2:37 am EST
Hi,
I’ve got an API that render a PDF :
http://localhost/api/report/2017-10-4
Using angular-cli, it’s defined so :
config.Routes.MapHttpRoute("Report", "api/report/{date}", new { controller = "Report", action = "Get" });
When I call it with the PDF viewer, it doesn’t find the route, because the parameter “/$pdf?_={timestamp}” that’s added by the viewer seems to make the route unmatchable. Should it be a “/{item?}” but it seems not…
Any idea how to solve that ?
Thanks a lot !