Currently the actions.ts file will generate methods as if the route template is in the older MVC style: routeTemplate: "api/{controller}/{action}/{id}". However, the default route template in WebAPI is now routeTemplate: "api/{controller}/{id}" so we should optionally support that.
How to go about determining this is more difficult!
Currently the
actions.tsfile will generate methods as if the route template is in the older MVC style:routeTemplate: "api/{controller}/{action}/{id}". However, the default route template in WebAPI is nowrouteTemplate: "api/{controller}/{id}"so we should optionally support that.How to go about determining this is more difficult!