diff --git a/lib/cartodb/middleware/context/locals.js b/lib/cartodb/middleware/context/locals.js index 93f28c54..ce34f442 100644 --- a/lib/cartodb/middleware/context/locals.js +++ b/lib/cartodb/middleware/context/locals.js @@ -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);