|
|
|
|
@ -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');
|
|
|
|
|
});
|
|
|
|
|
|