From 83ba2d5771d53b5573958cda3a240221562aa8a5 Mon Sep 17 00:00:00 2001 From: Steffen Bruchmann Date: Thu, 12 Dec 2013 04:19:15 +0100 Subject: [PATCH] Remove middleware: connect.bodyParser() Because `connect.bodyParser()` is deprecated and will be removed in Connect 3, this commit removes it from the stack and uses `express.urlencoded()` and `express.json()` instead. Visit the [Connect Wiki][wiki] for more information. [wiki]: https://github.com/senchalabs/connect/wiki/Connect-3.0 --- lib/feathers.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/feathers.js b/lib/feathers.js index da03addfcd..84134e24a0 100644 --- a/lib/feathers.js +++ b/lib/feathers.js @@ -18,7 +18,8 @@ function createApplication() { Proto.mixin(Application, app); app.init(); // Add REST provider by default, can always be disabled using app.disable('feathers rest') - app.use(express.bodyParser()).configure(providers.rest()); + app.use(express.urlencoded()); + app.use(express.json()).configure(providers.rest()); return app; }