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?
You need to use body.parser middleware. Iron router has this. Or there are packages e.g. pbastowski:body-parser
And if you are on FlowRouter there is: https://github.com/meteorhacks/picker
postRoutes.route('/yoururl/', function(params, req, res, next) {
console.log(params);
});
1 Like