Skip to content

Commit

Permalink
Add health check endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
JasonEtco committed Aug 14, 2024
1 parent d94fd26 commit c0bd65e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,11 @@ app.post("/", verifySignatureMiddleware, express.json(), async (req, res) => {
res.end();
});

// Health check
app.get("/", (req, res) => {
res.send("OK");
});

const port = Number(process.env.PORT || "3000");
app.listen(port, () => {
console.log(`Server is running on http://localhost:${port}`);
Expand Down

0 comments on commit c0bd65e

Please sign in to comment.