Showing
1 changed file
with
4 additions
and
0 deletions
@@ -7,4 +7,8 @@ router.get('/', function(req, res, next) { | @@ -7,4 +7,8 @@ router.get('/', function(req, res, next) { | ||
7 | res.render('detail', data); | 7 | res.render('detail', data); |
8 | }); | 8 | }); |
9 | 9 | ||
10 | +router.get('/data', function(req, res, next) { | ||
11 | + res.json(data); | ||
12 | +}); | ||
13 | + | ||
10 | module.exports = router; | 14 | module.exports = router; |
-
Please register or login to post a comment