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