0
.then()
のhttpポストをしたいと思います。私はすでに多くの方法でそれをしてきました...何も働かなかった 私はユーザーを作成しようとしていると、http POST
の作成後にします。http post inside .then()
'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