I'm working on migrating a site from Umbraco 8 to Umbraco 10. On the v8 site, we changed the default WebAPI route from "/umbraco/api/" to just "/api/" as part of white-labeling the site. Can anyone point me in the direction of how to do this in Umbraco 10? I see plenty of documentation about routing, but it doesn't seem to pertain to Web API.
Umbraco 9/10 Set Default Web API Route?
Hi,
I'm working on migrating a site from Umbraco 8 to Umbraco 10. On the v8 site, we changed the default WebAPI route from "/umbraco/api/" to just "/api/" as part of white-labeling the site. Can anyone point me in the direction of how to do this in Umbraco 10? I see plenty of documentation about routing, but it doesn't seem to pertain to Web API.
Thanks
Hi David
Can you use Attribute Routing on the API controllers?
https://our.umbraco.com/Documentation/Reference/Routing/Umbraco-API-Controllers/#using-mvc-attribute-routing-in-umbraco-web-api-controllers
regards
marc
is working on a reply...