From f7671afd7d721f17ff21428b51edf690212e876d Mon Sep 17 00:00:00 2001 From: "Glitch (hello-express)" Date: Fri, 20 Dec 2019 22:36:06 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=91=AC=F0=9F=92=90=20Checkpoint=20./serve?= =?UTF-8?q?r.js:7435365/130?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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(); + }) });