adding measurements

main
Gerardo Marx 6 days ago
parent 0ab91f7b59
commit d35fe5cd6d

@ -64,6 +64,11 @@ app.post('/api/measurements', (req, res) => {
res.status(201).json(measurement); res.status(201).json(measurement);
}); });
// GET
app.get('/api/measurements', (req, res) => {
res.json(measurements);
});
// starting the listening service // starting the listening service
app.listen(3030, () => { app.listen(3030, () => {
console.log('Server running at http://localhost:3030'); console.log('Server running at http://localhost:3030');

Loading…
Cancel
Save