From 03b5782c9f50d093a1ebc45886f3f2057399fcfb Mon Sep 17 00:00:00 2001 From: Gerardo Marx Date: Wed, 28 Oct 2026 21:10:01 -0600 Subject: [PATCH] adding routes --- index.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/index.js b/index.js index 09a8d16..2ae075d 100644 --- a/index.js +++ b/index.js @@ -6,6 +6,13 @@ app.get('/', (req, res) => { res.send('Sensor Logger'); }); +app.get('/api/status', (req, res) => { + res.json({ status: 'online', application: 'sensor-logger' }); +}); + + + + app.listen(3030, () => { console.log('Server running at http://localhost:3030'); });