fix function name and removing comments of localsMiddleware
This commit is contained in:
@@ -1,8 +1,6 @@
|
||||
const _ = require('underscore');
|
||||
|
||||
module.exports = function layergroupTokenMiddleware(req, res, next) {
|
||||
// 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.
|
||||
module.exports = function localsMiddleware(req, res, next) {
|
||||
res.locals = {};
|
||||
_.extend(res.locals, req.params);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user