Help for API auth in custom controller

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • minhngvan
    Junior Member
    • Jun 2021
    • 3

    Help for API auth in custom controller

    Dear,
    I write a custom controller (see attached), now I want every logged user can use this api.
    so how can I do that,

    Thanks
  • emillod
    Active Community Member
    • Apr 2017
    • 1405

    #2
    Did you added your controller/method to Routes.json?

    Comment

    • esforim
      Active Community Member
      • Jan 2020
      • 2204

      #3
      Off-topic: This look like it do a phone search whenever someone call you?

      Comment

      • minhngvan
        Junior Member
        • Jun 2021
        • 3

        #4
        Dear,
        This API worked, but need admin permission, now I want some Team/Roles can use this api.
        please help

        Comment

        • bandtank
          Active Community Member
          • Mar 2017
          • 379

          #5
          Originally posted by minhngvan
          Dear,
          This API worked, but need admin permission, now I want some Team/Roles can use this api.
          please help
          Did you figure out how to add custom permissions?

          Comment

          Working...