removing some repeated things

This commit is contained in:
Simon
2017-09-26 15:39:48 +02:00
parent 3f6afb4530
commit b94dfe066d
2 changed files with 0 additions and 8 deletions
@@ -2,9 +2,6 @@ const _ = require('underscore');
module.exports = function authorizeMiddleware (authApi) {
return function (req, res, next) {
// bring all query values onto req.params object
_.extend(req.params, req.query);
// FIXME: Temporary hack to share data between middlewares. Express overrides req.params to
// parse url params to an object and it's performed after matching path and controller.
req.locals = {};
@@ -27,11 +27,6 @@ module.exports = function cleanUpQueryParamsMiddleware () {
// bring all query values onto req.params object
_.extend(req.params, req.query);
// FIXME: Temporary hack to share data between middlewares. Express overrides req.params to
// parse url params to an object and it's performed after matching path and controller.
req.locals = {};
_.extend(req.locals, req.params);
next();
};
};