From 66cdd1a6b7ec59591b0e8544a156461d722114ca Mon Sep 17 00:00:00 2001 From: webapp10 Date: Mon, 22 May 2023 02:35:19 +0530 Subject: [PATCH] ver 1.0 - minor changes --- app/controllers/profile.controller.js | 1 - index.js | 11 ++++++++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/app/controllers/profile.controller.js b/app/controllers/profile.controller.js index f3d1c80..249443a 100644 --- a/app/controllers/profile.controller.js +++ b/app/controllers/profile.controller.js @@ -21,7 +21,6 @@ exports.UserInfo = (req, res) => { res.send(response.data); }) .catch(function (error) { - console.log(error); res.send({ error: true, message: error, diff --git a/index.js b/index.js index dbf347f..702c4a1 100644 --- a/index.js +++ b/index.js @@ -16,7 +16,13 @@ app.use(express.json()); app.use(express.urlencoded({ extended: true })); app.get("/", (req, res) => { - res.sendStatus(200); + res.status(200).send({ + base: BASE_PATH, + version: 1, + ver: "ver 1.0", + developer: "Subhranshu Choudhury", + report: "subhransuchoudhury00@gmail.com +91 8249587552", + }); }); // routes @@ -31,3 +37,6 @@ const PORT = process.env.PORT || 8080; app.listen(PORT, () => { console.log(`🌍 Server is running on port ${PORT}.`); }); + +// checked by subhranshu choudhury on 22-05-2023 +// MIT License