@msslgomez few points on where to look at:
- Is the route defined in a Route group? Then check which middleware is applied to the group and debug what causes the authorization problem
- Do you have anything in your LocationController constructor, or do you extend another Controller that adds authorization to the routes
- your
renderViewmethod, any form request that has theauthorizereturnfalseor any implementation that blocks the request?
The api route should be accessed using api/locations so both endpoints are different.