@@ -6,7 +6,7 @@ app.use(express.json());
|
||||
app.get("/", (req, res) => {
|
||||
res.json({
|
||||
status: "OK",
|
||||
message: "Home Route Working"
|
||||
message: "Home Route Working Fine"
|
||||
});
|
||||
});
|
||||
|
||||
@@ -19,6 +19,7 @@ app.get("/health", (req, res) => {
|
||||
|
||||
module.exports = app;
|
||||
|
||||
|
||||
// only start server if not testing
|
||||
// It ensures the server starts only when the file is run directly, not when it is imported for testing.
|
||||
if (require.main === module) {
|
||||
|
||||
Reference in New Issue
Block a user