From 92a001196c083b9cec86518c84c1a1652d46bdf9 Mon Sep 17 00:00:00 2001 From: Agrim Nautiyal <31009929+AgrimNautiyal@users.noreply.github.com> Date: Wed, 16 Oct 2019 15:35:08 +0530 Subject: [PATCH] Update route.js --- routes/route.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/routes/route.js b/routes/route.js index cb8a48c..1e81c84 100644 --- a/routes/route.js +++ b/routes/route.js @@ -10,6 +10,10 @@ router.post("add", (req, res) => { // Add logic here }); +router.get("/hello", (req, res) => { + res.send("Hello World! :)"); +}); + router.post("/power", (req, res) => { let param1 = req.body.param1; let param2 = req.body.param2;