From c65b054b99afcdd5b36937c5e83f0154574c0bce Mon Sep 17 00:00:00 2001 From: Badri Sunderarajan Date: Thu, 25 Feb 2021 12:10:09 +0530 Subject: [PATCH] Make our default message also JSON (not string) Let's be consistent ;) --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 5f1472d..681e8c4 100644 --- a/index.js +++ b/index.js @@ -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) => {