Skip to content

Commit ed21a8a

Browse files
authored
Merge pull request #1 from Anand-1432/master
feat : add post req
2 parents 7b4af50 + 2b91b3e commit ed21a8a

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

server.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,11 @@ app.get("/", (req, res) => {
4040
res.send("Express : backend");
4141
})
4242

43+
app.post("/", (req, res) => {
44+
console.log(JSON.stringify(req.body, 0, 2));
45+
res.status("200").send(req.body)
46+
})
47+
4348
app.listen(port, () => {
4449
console.log(`listening at port ${port}`)
4550
})

0 commit comments

Comments
 (0)