Getting 404, for new method in extension/users-permission (custom login api)

Hi Nitish

Don’t know if you still have the issue.
I just encountered it myself.

Here’s what you can do:

  • set ctx.body with your response:
ctx.body = { "hello": "world" }
  • set ctx.status with the response status:
ctx.status = 204

The status doesn’t need to be set if ctx.body is set and you want it to be the usual 200 status

Best regards