From 6d3f1b9ca63ac53f44686742b3bf7aada4d537eb Mon Sep 17 00:00:00 2001 From: Vishakh Abhayan Date: Fri, 15 Nov 2024 23:31:13 +0530 Subject: [PATCH] feat(): health check api --- src/app.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/app.js b/src/app.js index 5df908a..0dedd61 100644 --- a/src/app.js +++ b/src/app.js @@ -12,6 +12,10 @@ const wss = new WebSocket.Server({ server }); app.use(cors()); app.use(express.json()); +app.get("/v1/status", (req, res) => { + res.json({ status: "ok" }); +}); + setupWebSocket(wss); server.listen(config.port, () => {