health check route added

This commit is contained in:
Moon Patel
2023-09-13 13:50:15 +05:30
parent cf4670582d
commit 0bd078438f
+3
View File
@@ -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) => {