testing webhook 3min api added
This commit is contained in:
7
index.js
7
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;
|
const PORT = process.env.PORT || 4000;
|
||||||
app.listen(PORT, () =>
|
app.listen(PORT, () =>
|
||||||
console.log(`🔥 Server running on http://localhost:${PORT}`)
|
console.log(`🔥 Server running on http://localhost:${PORT}`)
|
||||||
|
|||||||
Reference in New Issue
Block a user