7 lines
193 B
JavaScript
7 lines
193 B
JavaScript
|
module.exports = function allowQueryParams(params) {
|
||
|
return function allowQueryParamsMiddleware(req, res, next) {
|
||
|
req.context.allowedQueryParams = params;
|
||
|
next();
|
||
|
};
|
||
|
};
|