add a get route

This commit is contained in:
martind2000 2016-01-17 23:58:57 +00:00
parent c851ea74e2
commit 159c2208de

View File

@ -26,4 +26,15 @@ router.get('/', function(req, res, next) {
});
router.get('/now', function(req, res, next) {
var now = new Date();
var t = now.toUTCString();
res.writeHead(200, {"ContentType": " text/html"});
res.end(t);
});
module.exports = router;