proper naming

master
Matt Huntington 9 years ago
parent 25591fed0e
commit 78e30117ed

@ -5,8 +5,8 @@ var Runs = require('../models/run.js');
controller.use(bodyParser.json()); controller.use(bodyParser.json());
controller.get('/', function(req, res){ controller.get('/', function(req, res){
Runs.findAll().then(function(data){ Runs.findAll().then(function(runs){
res.json(data); res.json(runs);
}); });
}); });

Loading…
Cancel
Save