master
Matt Huntington 9 years ago
parent 11b55553b8
commit 384715256c

@ -10,7 +10,13 @@ controller.get('/', function(req, res){
});
controller.get('/:id', function(req, res){
res.json(runs[req.params.id]);
// Run.findOne({
// where:{
// id:req.params.id
// }
Run.findById(req.params.id).then(function(foundRuns){
res.json(foundRuns);
});
});
controller.post('/', function(req, res){

Loading…
Cancel
Save