Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

node-express-server-rest-api: body-parser #106

Closed
rwieruch opened this issue May 19, 2019 · 1 comment
Closed

node-express-server-rest-api: body-parser #106

rwieruch opened this issue May 19, 2019 · 1 comment

Comments

@rwieruch
Copy link
Owner

Hi Robin,

(I know you probably already know this so it's more for anyone else following this tutorial)

I think we don't need the body-parser package any longer because Express now comes built in with the functions that body-parser provided. Now we can simply use app.use(express.json()); and app.use(express.urlencoded({ extended: true })); instead! :)

See https://www.robinwieruch.de/node-express-server-rest-api/#comment-4467266016

@briantomillo
Copy link
Contributor

briantomillo commented Jul 27, 2019

I updated to reflect the changes and will open a pull request.
#117

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants