I am trying to create a custom route for an API Controller, that has the following structure:
/{currentUrl}/{methodName}
currentUrl
does not come as a parameter.
Example:
/tool/compute/download
where "download" is the name of the method, and "/tool/compute/" is the current page we are on.
Just to mention, I am using Sitecore.
Could anyone help?
Thanks.
You could build a method that takes the tool name as an agument, like this: