Skip to content

Commit c0bd65e

Browse files
committedAug 14, 2024
Add health check endpoint
1 parent d94fd26 commit c0bd65e

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed
 

‎src/index.ts

+5
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,11 @@ app.post("/", verifySignatureMiddleware, express.json(), async (req, res) => {
102102
res.end();
103103
});
104104

105+
// Health check
106+
app.get("/", (req, res) => {
107+
res.send("OK");
108+
});
109+
105110
const port = Number(process.env.PORT || "3000");
106111
app.listen(port, () => {
107112
console.log(`Server is running on http://localhost:${port}`);

0 commit comments

Comments
 (0)
Failed to load comments.