diff --git a/index.js b/index.js index 39b4f4c..a6dd327 100644 --- a/index.js +++ b/index.js @@ -43,6 +43,13 @@ app.get("/test-db", async (req, res) => { } }); +app.get("/test-webhook", (req, res) => { + // 3 minutes = 3 × 60 × 1000 = 180000 milliseconds + setTimeout(() => { + res.status(200).send({ message: "Webhook received after 3 minutes!" }); + }, 180000); +}); + const PORT = process.env.PORT || 4000; app.listen(PORT, () => console.log(`🔥 Server running on http://localhost:${PORT}`)