Closed rootedsoftware closed 8 years ago
Yeah. This is what you should look at.
Ok, thanks. I've already got a Picker route in place, but I can see that Picker responds with much more than what I need for a simple POST endpoint. It appears to be trying to render the whole app.
Thanks, I found it in the docs.
Looks like I just needed to add this -> return req.method == "POST";
after my res.end();
I'm using this as an API endpoint. I receive a webhook and I don't need to render my whole app just to tell the server that everything is "ok".
Should I look for another package (any suggestions) or is this the right package for this?
Thanks