fix function name and removing comments of localsMiddleware

This commit is contained in:
Simon Martín
2017-10-03 13:03:02 +02:00
parent 430e1513d8
commit 6bfc5d8891
+1 -3
View File
@@ -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);