diff --git a/config/express.js b/config/express.js index 9a81a7e2b9..a411fd47f9 100755 --- a/config/express.js +++ b/config/express.js @@ -41,8 +41,9 @@ module.exports = function(app, passport, db) { //cookieParser should be above session app.use(express.cookieParser()); - //bodyParser should be above methodOverride - app.use(express.bodyParser()); + // request body parsing middleware should be above methodOverride + app.use(express.urlencoded()); + app.use(express.json()); app.use(express.methodOverride()); //express/mongo session storage