mirror of
https://github.com/feathersjs/feathers.git
synced 2026-02-01 17:37:38 +00:00
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
This commit is contained in:
parent
e0c17c3328
commit
83ba2d5771
@ -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;
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user