factor bootcamp JSON into seperate file

This commit is contained in:
Quincy Larson
2015-06-15 20:49:55 -07:00
parent 6b909d8f59
commit c9ba210afa
3 changed files with 324 additions and 276 deletions

View File

@ -7,6 +7,7 @@ var Rx = require('rx'),
debug = require('debug')('freecc:cntr:resources'),
constantStrings = require('../utils/constantStrings.json'),
bootcampJson = require('../utils/bootcamps.json'),
secrets = require('../../config/secrets');
var slack = new Slack(secrets.slackHook);
@ -328,7 +329,8 @@ module.exports = function(app) {
function bootcampCalculator(req, res) {
res.render('resources/calculator', {
title: 'Coding Bootcamp Cost Calculator'
title: 'Coding Bootcamp Cost Calculator',
bootcampJson: bootcampJson
});
}