trying to persist the db again

This commit is contained in:
Martin Donnelly 2015-11-17 10:56:32 +00:00
parent 0a7ac3310c
commit ea38dd7f13

View File

@ -101,6 +101,11 @@ router.get('/reading', function(req, res, next) {
router.post('/', function(req, res, next) { router.post('/', function(req, res, next) {
"use strict"; "use strict";
console.log('POST'); console.log('POST');
var t = req.query;
console.log('t:');
console.log(JSON.stringify(t));
res.writeHead(200, {"ContentType": "application/json"}); res.writeHead(200, {"ContentType": "application/json"});
//res.send(JSON.stringify(t)); //res.send(JSON.stringify(t));
res.end(JSON.stringify({})); res.end(JSON.stringify({}));