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

unused middleware #39

Open
AlaaTaima opened this issue Feb 28, 2020 · 0 comments
Open

unused middleware #39

AlaaTaima opened this issue Feb 28, 2020 · 0 comments

Comments

@AlaaTaima
Copy link

app.use(express.json());

I see you used form to send data to the server and to parse it you used : app.use(express.urlencoded({ extended: false })); , that's right 👍

but, there is no need for : app.use(express.json());

you need it when using fetch to send json object to server

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

1 participant