Remove flash messages view helper
This commit is contained in:
4
app.js
4
app.js
@ -64,10 +64,6 @@ app.use(function(req, res, next) {
|
|||||||
next();
|
next();
|
||||||
});
|
});
|
||||||
app.use(flash());
|
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(less({ src: __dirname + '/public', compress: true }));
|
||||||
app.use(app.router);
|
app.use(app.router);
|
||||||
app.use(express.static( path.join(__dirname, 'public'), { maxAge: 864000000 } ));
|
app.use(express.static( path.join(__dirname, 'public'), { maxAge: 864000000 } ));
|
||||||
|
Reference in New Issue
Block a user