diff --git a/server.js b/server.js index 1d4cc2f..79f91df 100644 --- a/server.js +++ b/server.js @@ -85,7 +85,11 @@ app.get('/getdata', (req, res) => { }) */ - + Readings.findAll({ + attributes: ['timestamp', 'reading'] + }).then((result) => { + res.status(200).send(result).end(); + }) });