我想在里面做一个http post .then()
。我已经以许多不同的方式使用它...没有任何效果我正在尝试创建用户并POST
在创建后执行 http。
'use strict';
module.exports = function(app) {
return function(req, res, next) {
const body = req.body;
// Get the user service and `create` a new user
app.service('users').create({
email: body.email,
password: body.password
}).then('I WANT HTTP POST WITH PARAMS HERE')
// On errors, just call our error middleware
.catch(next);
};
};
我想在POST