Make our default message also JSON (not string)

Let's be consistent ;)
This commit is contained in:
Badri Sunderarajan 2021-02-25 12:10:09 +05:30
parent 0962bf0e0f
commit c65b054b99

View file

@ -10,7 +10,7 @@ app.listen(5000, () => {
})
app.get("/", (req, res) => {
res.send("Hi!")
res.send({ status: "ok", message: "woof, woof!" })
})
app.post("/add", (req, res) => {