Remove flash messages view helper

This commit is contained in:
Sahat Yalkabov
2014-01-28 17:50:23 -05:00
parent 666a70a50e
commit 4e21e761ad

4
app.js
View File

@ -64,10 +64,6 @@ app.use(function(req, res, next) {
next();
});
app.use(flash());
app.use(function(req, res, next) {
res.locals.flash = req.flash.bind(req);
next();
});
app.use(less({ src: __dirname + '/public', compress: true }));
app.use(app.router);
app.use(express.static( path.join(__dirname, 'public'), { maxAge: 864000000 } ));