Skip to content

Commit

Permalink
Merge pull request #27 from sbruchmann/sbruchmann/remove-bodyParser
Browse files Browse the repository at this point in the history
Remove middleware: connect.bodyParser()
  • Loading branch information
daffl committed Dec 12, 2013
2 parents e0c17c3 + 83ba2d5 commit 216954c
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 216954c

Please sign in to comment.