Authored by 姜枫

add json data

@@ -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;