v3: review some more files, add logging for unhandled promises

This commit is contained in:
Matteo Pagliazzi
2016-04-12 20:14:36 +02:00
parent 6458796a36
commit 793ce38f6b
18 changed files with 33 additions and 48 deletions

View File

@@ -49,7 +49,7 @@ module.exports = function attachMiddlewares (app, server) {
extended: true, // Uses 'qs' library as old connect middleware
}));
app.use(bodyParser.json());
app.use(methodOverride()); // TODO still needed in 2016?
app.use(methodOverride());
app.use(cookieSession({
name: 'connect:sess', // Used to keep backward compatibility with Express 3 cookies