Skip to content

Commit 66cdd1a

Browse files
authored
ver 1.0
- minor changes
1 parent 5e3d298 commit 66cdd1a

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

app/controllers/profile.controller.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ exports.UserInfo = (req, res) => {
2121
res.send(response.data);
2222
})
2323
.catch(function (error) {
24-
console.log(error);
2524
res.send({
2625
error: true,
2726
message: error,

index.js

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,13 @@ app.use(express.json());
1616
app.use(express.urlencoded({ extended: true }));
1717

1818
app.get("/", (req, res) => {
19-
res.sendStatus(200);
19+
res.status(200).send({
20+
base: BASE_PATH,
21+
version: 1,
22+
ver: "ver 1.0",
23+
developer: "Subhranshu Choudhury",
24+
report: "[email protected] +91 8249587552",
25+
});
2026
});
2127

2228
// routes
@@ -31,3 +37,6 @@ const PORT = process.env.PORT || 8080;
3137
app.listen(PORT, () => {
3238
console.log(`🌍 Server is running on port ${PORT}.`);
3339
});
40+
41+
// checked by subhranshu choudhury on 22-05-2023
42+
// MIT License

0 commit comments

Comments
 (0)