When I create an endpoint in a collection, if the method is 'post' it returns an error on the server: INFO: Not found, and on the browser: {"errors":[{"message":"Not Found"}]}
This is the code:
{
path: '/revoke',
method: 'post',
handler: async (req) => {
return Response.json({
message: 'REVOKE has been triggered',
})
},
},