Skip to content

Commit

Permalink
Remove middleware: connect.bodyParser()
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Steffen Bruchmann committed Dec 12, 2013
1 parent e0c17c3 commit 83ba2d5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/feathers.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 83ba2d5

Please sign in to comment.