ACM-Thapar / ACM-Thapar/opensource-bootcamp-1

POST requests failing (Cannot read property of undefined)

Open
#2 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
0
Forks
0
PR merge metrics
No merged PRs in 30d

Description

When sending a POST request to /todos, the server fails to read the body. It seems like the body parsing middleware is missing. Expected Behavior: app.use(express.json()) should be added to parse incoming JSON payloads.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.