show route returns element by index

master
Matt Huntington 9 years ago
parent b75178d5d5
commit e1cc7c1825

@ -11,7 +11,7 @@ controller.get('/new', function(req, res){
}); });
controller.get('/:id', function(req, res){ controller.get('/:id', function(req, res){
res.send('run show page for id: ' + req.params.id); res.json(runs[req.params.id]);
}); });
module.exports = controller; module.exports = controller;

Loading…
Cancel
Save