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