start adding Courseware controllers, routes etc.

This commit is contained in:
Michael Q Larson
2015-02-01 14:22:34 -08:00
parent d7d4727c0f
commit afab456ad9
10 changed files with 411 additions and 68 deletions

View File

@ -202,7 +202,21 @@ module.exports = {
})
.map(function(elem) {
return elem._id;
});
},
allBonfireNames: function() {
return bonfires.map(function(elem) {
return {
name: elem.name,
difficulty: elem.difficulty
}
})
.sort(function(a, b) {
return a.difficulty - b.difficulty;
})
.map(function(elem) {
return elem.name;
});
}
};