meteorhacks / picker

Server Side Router for Meteor
MIT License
182 stars 30 forks source link

Is it possible to not render all of the http content on server side route? #31

Closed rootedsoftware closed 8 years ago

rootedsoftware commented 8 years ago

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

arunoda commented 8 years ago

Yeah. This is what you should look at.

rootedsoftware commented 8 years ago

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.

rootedsoftware commented 8 years ago

Thanks, I found it in the docs.

Looks like I just needed to add this -> return req.method == "POST"; after my res.end();