added methods and routes for getting an exercises history, and the sum of a workouts musclearrays -- incl a modifier

This commit is contained in:
2013-01-25 00:20:32 -05:00
parent 1e3238dcc7
commit 5584faedef
10 changed files with 105 additions and 35 deletions

View File

@@ -3,7 +3,7 @@ var workout = require('../../data/models/workout');
function loadworkout(req, res, next) {
console.log('fetch id' + req.params._id );
workout.findOne({_id: req.params._id})
//.populate('elements')
.populate('elements.exerciseID')
.exec(function(err, workout) {
if (err) {
return next(err);