We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Books-store/server/app.js
Line 14 in 1381a8a
app.use(express.urlencoded({ extended: false }));
but, there is no need for : app.use(express.json()); you need it when using fetch to send json object to server
app.use(express.json());
fetch
json object
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Books-store/server/app.js
Line 14 in 1381a8a
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 sendjson object
to serverThe text was updated successfully, but these errors were encountered: