I have a problem using a UmbracoAuthorizedJsonController in the backoffcie. I keep getting 404 errors as if the page can not be found, however, I am sure I am calling the right URL as per the documentation.
This is how I have set up the controller:[Umbraco.Web.Mvc.PluginController("area")]
public class MembersApiController : UmbracoAuthorizedJsonController
{
public Member GetMember()
And this the the URL I call from the resource.js file: "~/Umbraco/backoffice/area/MembersApi/GetMember"
Backoffice API Controller return 404 error
Hello,
I have a problem using a UmbracoAuthorizedJsonController in the backoffcie. I keep getting 404 errors as if the page can not be found, however, I am sure I am calling the right URL as per the documentation.
This is how I have set up the controller:
[Umbraco.Web.Mvc.PluginController("area")] public class MembersApiController : UmbracoAuthorizedJsonController { public Member GetMember()
And this the the URL I call from the resource.js file: "~/Umbraco/backoffice/area/MembersApi/GetMember"
Now, according to the documentation found here it should work this way: https://our.umbraco.org/documentation/Reference/WebApi/
What is going wrong here? :(
I managed to solve the problem. It seems like if I call the api from a angualr js file I need to omit the "~/umbraco/".
is working on a reply...