经过数小时的无奈之后,我将其添加为
middleware.json:
"parse": { "body-parser#json": {}, "body-parser#urlenpred": {"params": { "extended": true }}}它作为依赖项安装。现在
req.body,我的路线中有表单数据。我的
server/boot/routes.js样子是这样的:
module.exports = function(app) { app.post('/mailing_list', function(req, res) { console.log(req.body.email); res.send({"status": 1, "message": "Successfully added to mailing list."}) });}


