From 4c3087f4fc97ff438cfa214c3b0b8d511f238da7 Mon Sep 17 00:00:00 2001 From: nurullah Date: Mon, 3 Nov 2025 12:18:30 +0600 Subject: [PATCH] testing webhook 3min api added --- index.js | 7 +++++++ 1 file changed, 7 insertions(+) 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}`)