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

optimise bodyParser in week-02/03-mongo #971

Open
prince981620 opened this issue May 29, 2024 · 0 comments
Open

optimise bodyParser in week-02/03-mongo #971

prince981620 opened this issue May 29, 2024 · 0 comments

Comments

@prince981620
Copy link

it took a lot of time to figure out that when you include postman body and even if you comment it out the global middleware app.use(bodyaParser.json()) will try to parse and throw an error so set body to none or it should have nothig (not even commented something) while sending get requests or try to set bodyParser middleware after get routes. @hkirat is there any way to exclude a particular ruote from a global middleware

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