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

@@ -8,13 +8,14 @@ var _ = require('lodash'),
* Bonfire controller
*/
exports.courseware = function(req, res) {
res.render('courseware/show.jade', {
var highestBonfireNumber = resources.numberOfBonfires();
exports.bonfireNames = function(req, res) {
res.render('bonfires/showList', {
bonfireList: resources.allBonfireNames()
});
};
var highestBonfireNumber = resources.numberOfBonfires();
exports.index = function(req, res) {
res.render('bonfire/show.jade', {
completedWith: null,