add: server health endpoint

This commit is contained in:
2026-01-27 12:41:56 +03:30
parent 6d80230613
commit 2898086499

View File

@@ -2082,6 +2082,10 @@ app.get("/", async (req, res) => {
return res.redirect("https://rasadyar.com");
});
app.get("/health", async (req, res) => {
return res.json({ status: "server is working..." });
});
// Start the server
app.listen(port, () => {
console.log(`Server is running on http://localhost:${port}`);