403 forbidden when calling custom controller from Nuxt

Here is the problem:

    {
      "method": "GET",
      "path": "/routines/:id",
      "handler": "routine.findOne",
      "config": {
        "policies": []
      }
    },
    {
      "method": "GET",
      "path": "/routines/me",
      "handler": "routine.me",
      "config": {
        "policies": []
      }

So basically you are hitting the first route right now and it assumes that
me is actually an :id. Koa is making the verifications with regex so in this case it takes the first matched route. Move the route with /me above that one with /:id

3 Likes