add a get route
This commit is contained in:
parent
d6a710be63
commit
c851ea74e2
@ -89,6 +89,9 @@ router.get('/:id', function(req, res, next) {
|
||||
var id = req.params.id;
|
||||
|
||||
console.log('id: ' + id);
|
||||
res.writeHead(200, {"ContentType": "application/json"});
|
||||
//res.send(JSON.stringify(t));
|
||||
res.end(JSON.stringify({}));
|
||||
});
|
||||
|
||||
router.get('/reading', function(req, res, next) {
|
||||
|
Loading…
Reference in New Issue
Block a user