From d1234d463ef5434f80c25baa9b6439ed7fd9b265 Mon Sep 17 00:00:00 2001 From: Pacien TRAN-GIRARD Date: Sun, 6 Jul 2014 00:30:10 +0200 Subject: Use individual middlewares for bodyParser --- webcastor.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/webcastor.js b/webcastor.js index deff3bf..aebadb5 100644 --- a/webcastor.js +++ b/webcastor.js @@ -115,7 +115,10 @@ var Server = { var app = imports.express(); app.use(imports.logfmt.requestLogger()); - app.use(imports.bodyParser()); + app.use(imports.bodyParser.json()); + app.use(imports.bodyParser.urlencoded({ + extended : true, + })); app.set('view engine', 'html'); app.set('layout', 'layout'); app.enable('view cache'); -- cgit v1.2.3