Post/get requests processing


#1

Hi all! Please, can somebody explain me how to process post/get requests in meteor.js app? I need receive some data from payment service which passed by post request. Any advices?


#2

You need to use body.parser middleware. Iron router has this. Or there are packages e.g. pbastowski:body-parser


#3

And if you are on FlowRouter there is: https://github.com/meteorhacks/picker

postRoutes.route('/yoururl/', function(params, req, res, next) {
 console.log(params);
});