...
|
...
|
@@ -63,7 +63,11 @@ module.exports = (req, res, next) => { |
|
|
let params = Object.assign(req.query, req.body, baseParams);
|
|
|
|
|
|
return api.proxy(apiUrl, params, {
|
|
|
method: req.method.toLowerCase()
|
|
|
method: req.method.toLowerCase(),
|
|
|
headers: {
|
|
|
'x-shop-id': currentShop.shopsId,
|
|
|
'x-user-id': req.session.LOGIN_UID
|
|
|
}
|
|
|
}).on('error', error => {
|
|
|
next({code: 500, message: error});
|
|
|
}).pipe(res);
|
...
|
...
|
|