testing webhook 3min api added

This commit is contained in:
nurullah
2025-11-03 12:18:30 +06:00
parent 6a82803d24
commit 4c3087f4fc

View File

@@ -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}`)