Default not needed
This commit is contained in:
parent
41c7244714
commit
cba3b74593
@ -7,7 +7,7 @@ module.exports = function params ({ strategy = 'query' } = {}) {
|
||||
const getParams = getParamsFromStrategy(strategy);
|
||||
|
||||
return function paramsMiddleware (req, res, next) {
|
||||
const input = Object.assign({}, req.query, req.body || {});
|
||||
const input = Object.assign({}, req.query, req.body);
|
||||
|
||||
try {
|
||||
res.locals.params = getParams(input);
|
||||
|
Loading…
Reference in New Issue
Block a user