0
我想在.then()
内做一个http帖子。我已经以许多不同的方式...没有任何工作 我试图创建一个用户,然后做一个http POST
。http post .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