diff options
author | Pacien TRAN-GIRARD | 2014-07-06 00:30:10 +0200 |
---|---|---|
committer | Pacien TRAN-GIRARD | 2014-07-06 00:30:10 +0200 |
commit | d1234d463ef5434f80c25baa9b6439ed7fd9b265 (patch) | |
tree | 55e1032d770ce34c809a57b31eb802a35fb99a95 | |
parent | dd01650584f3684aa08f3c694268aab5f78e913d (diff) | |
download | webcastor-d1234d463ef5434f80c25baa9b6439ed7fd9b265.tar.gz |
Use individual middlewares for bodyParser
-rw-r--r-- | webcastor.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/webcastor.js b/webcastor.js index deff3bf..aebadb5 100644 --- a/webcastor.js +++ b/webcastor.js | |||
@@ -115,7 +115,10 @@ var Server = { | |||
115 | var app = imports.express(); | 115 | var app = imports.express(); |
116 | 116 | ||
117 | app.use(imports.logfmt.requestLogger()); | 117 | app.use(imports.logfmt.requestLogger()); |
118 | app.use(imports.bodyParser()); | 118 | app.use(imports.bodyParser.json()); |
119 | app.use(imports.bodyParser.urlencoded({ | ||
120 | extended : true, | ||
121 | })); | ||
119 | app.set('view engine', 'html'); | 122 | app.set('view engine', 'html'); |
120 | app.set('layout', 'layout'); | 123 | app.set('layout', 'layout'); |
121 | app.enable('view cache'); | 124 | app.enable('view cache'); |