【发布时间】:2016-08-18 23:05:38
【问题描述】:
我正在尝试使用 Meteor、Picker 和 Body-Parser 解析来自 Sendgrid Inbound Webhook 的传入电子邮件。我收到了电子邮件,但是当我记录请求正文时,我得到一个空对象。我在这里错过了什么??
var bodyParser = require('body-parser');;
Picker.middleware( bodyParser.json() );
Picker.route('/incoming/', function(params, req, res, next) {
console.log("Body: " + JSON.stringify(req.body));
}
【问题讨论】:
标签: meteor sendgrid picker body-parser