Skip to content

Commit

Permalink
feat(): health check api
Browse files Browse the repository at this point in the history
  • Loading branch information
vishakh-abhayan committed Nov 15, 2024
1 parent 64763c6 commit 6d3f1b9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -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, () => {
Expand Down

0 comments on commit 6d3f1b9

Please sign in to comment.