I have a 3rd party provider that will trigger an action (That I will then go on to execute some cloud code) and they wish to have a webhook to call, they can make a simple GET request (Including a few parameters) to trigger the action on my side, to a URL i provide them,
I didn’t really want to setup an entire separate service to listen for this webhook, and would somehow like to add it to my existing parse-server.
I have seen on old forums that it used to be possible to do this by adding an express route somewhere but I cant see where that is easily possible.
Currently, I have tried adding a GET request to the mountRoutes section in the functionsRouter;
this.route('GET', '/whatever', FunctionsRouter.handleMySpecificRequest);
but at this point, a call would still require an API key adding, which I’m unable to have the caller provide. They can simply call a get request. Is there any easy way to disable the need for an API key or any specific header for this request? It would be ideal as handleMySpecificRequest can still be in Cloud Code JS file.
Any ideas of how I might add a simple GET endpoint and a function, or how to disable the need for an API key for this endpoint? Or any other ideas of how to handle it?