Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Dave de Moel 122 posts 574 karma points c-trib
    Aug 11, 2015 @ 10:27
    Dave de Moel
    0

    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? :(

  • Dave de Moel 122 posts 574 karma points c-trib
    Aug 11, 2015 @ 11:29
    Dave de Moel
    100

    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/".

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies