You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
321 B
JavaScript
19 lines
321 B
JavaScript
const express = require('express');
|
|
|
|
const app = express();
|
|
|
|
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');
|
|
});
|