From 0bd078438f9da57f79746642b184277bc2221adb Mon Sep 17 00:00:00 2001 From: Moon Patel Date: Wed, 13 Sep 2023 13:50:15 +0530 Subject: [PATCH] health check route added --- backend/app.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/backend/app.js b/backend/app.js index d19ed52..6572fef 100644 --- a/backend/app.js +++ b/backend/app.js @@ -18,6 +18,9 @@ const http = require("http"); const server = http.createServer(app); const { socketIOServerInit } = require("./socket"); +app.get("/health-check", (req, res, next) => { + res.status(200).send("OK"); +}); app.use(cors({ origin: "http://localhost:5173", credentials: true })); app.use(bodyParser.json()); app.use((req, res, next) => {