From e1f1f182942c81a20dbf568bc38577f88e4c3927 Mon Sep 17 00:00:00 2001 From: Animesh Kumar Date: Wed, 1 Jul 2026 11:11:34 +0530 Subject: [PATCH] Add backend health check route --- backend/app.js | 1 + backend/routes/health-route.js | 8 ++++++++ 2 files changed, 9 insertions(+) create mode 100644 backend/routes/health-route.js diff --git a/backend/app.js b/backend/app.js index c616851..b0c839e 100644 --- a/backend/app.js +++ b/backend/app.js @@ -13,6 +13,7 @@ dotenv.config({path:'./.env.local'}) +app.use('/api/health',require('./routes/health-route')); app.use('/api/fdata',require('./routes/fdata-route')); app.use('/api/sdata',require('./routes/sdata-route')); diff --git a/backend/routes/health-route.js b/backend/routes/health-route.js new file mode 100644 index 0000000..5f4662d --- /dev/null +++ b/backend/routes/health-route.js @@ -0,0 +1,8 @@ +const express=require('express') +const router=express.Router() + +router.get('',(req,res)=>{ + res.status(200).json({ status: 'ok' }) +}) + +module.exports = router \ No newline at end of file