added rudimentary admin pages, started testing validation code

This commit is contained in:
2013-01-20 00:28:32 -05:00
parent 651a534523
commit 536db0e212
18 changed files with 347 additions and 55 deletions

View File

@@ -11,12 +11,6 @@ function loadworkout(req, res, next) {
if (! workout) {
return res.send('Not found', 404);
}
console.log('workout' + JSON.stringify(workout));
workout.elements.forEach(function(element, index, array) {
// console.log("elementID" + element._id);
// console.log("elementID" + JSON.stringify(element.splits));
});
req.workout = workout;
next();
});