commit dde864ad56f2aa77e5b8cac641b286212c044702
parent 97e55ab5e8231c09841247a7151a392af254278c
Author: Amit Dutta <amitdutta4255@gmail.com>
Date: Fri, 12 Sep 2025 17:41:41 +0530
Update server.js
Diffstat:
1 file changed, 5 insertions(+), 0 deletions(-)
diff --git a/server.js b/server.js
@@ -110,6 +110,11 @@ app.get('/api/raw', async (req, res) => {
}
});
+// New health check endpoint for monitoring services like UptimeRobot
+app.get('/health', (req, res) => {
+ res.status(200).send('OK');
+});
+
app.listen(port, () => {
console.log(`Server listening at http://localhost:${port}`);
});