From ea38dd7f138f5c87870b7b324938987897dd67a5 Mon Sep 17 00:00:00 2001 From: Martin Donnelly Date: Tue, 17 Nov 2015 10:56:32 +0000 Subject: [PATCH] trying to persist the db again --- routes/temp.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/routes/temp.js b/routes/temp.js index 627ff8b..1698127 100644 --- a/routes/temp.js +++ b/routes/temp.js @@ -101,6 +101,11 @@ router.get('/reading', function(req, res, next) { router.post('/', function(req, res, next) { "use strict"; console.log('POST'); + var t = req.query; + + console.log('t:'); + console.log(JSON.stringify(t)); + res.writeHead(200, {"ContentType": "application/json"}); //res.send(JSON.stringify(t)); res.end(JSON.stringify({}));