add a get route
This commit is contained in:
parent
c851ea74e2
commit
159c2208de
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user