Announcement

Collapse
No announcement yet.

Controller Routing For Portal

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Controller Routing For Portal

    I'm trying to create a controller which is used in the Portal, but I can't get anything to work.

    If I create a standard controller with Authentication required a call from the portal spits out not authorised.

    How where can I create a controller that a portal user can call? I can see that the portal calls go via /portal-access/index.php

    Thanks

  • #2
    Ok so the routing needs to be of the form:

    http://my.espocrm.local/api/v1/portal-access/[portalId]/MyController/action/mygetaction

    I was hoping that I could create a controller which could be accessed by different portal users using the same url - If required I could authenticate them within the controller.

    Is there a class I can include to validate the user or do I always need the portalId?

    Any ideas?

    Comment

    Working...
    X