From c0985dd951e53d9ddbf2693cdcbcbe525bc42dbf Mon Sep 17 00:00:00 2001 From: SylTi Date: Tue, 21 Jan 2014 00:34:47 +0100 Subject: [PATCH] bugfix template bodyparser() generting deprecated warning --- templates/express/config/express.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/templates/express/config/express.js b/templates/express/config/express.js index 1014a0ab3..56c589ee9 100644 --- a/templates/express/config/express.js +++ b/templates/express/config/express.js @@ -40,7 +40,8 @@ module.exports = function(app) { app.set('view engine', 'html');<% } %><% if (jade) { %> app.set('view engine', 'jade');<% } %> app.use(express.logger('dev')); - app.use(express.bodyParser()); + app.use(express.json()); + app.use(express.urlencoded()); app.use(express.methodOverride());<% if(mongoPassportUser) { %> app.use(express.cookieParser());