start working on integrating helmet plugin

This commit is contained in:
Michael Q Larson
2014-12-10 20:44:33 -08:00
parent e174972cbb
commit 21738654e9
4 changed files with 39 additions and 16 deletions

View File

@ -1,3 +1,12 @@
var User = require('../models/User');
var totalUsers = User.count({}, function( err, count){
count;
});
//var usersOverTenChallenges = User.where: "this.challengesCompleted && this.challengesCompleted.length >= 10"
/**
* GET /
* Resources.
@ -15,6 +24,14 @@ exports.privacy = function(req, res) {
});
}
exports.statistics = function(req, res) {
res.render('statistics', {
title: 'Code Camper Statistics',
totalUsers: totalUsers,
//usersOverTenChallenges: usersOverTenChallenges
});
}
exports.jqueryExercises = function(req, res) {
res.render('jquery-exercises', {
title: 'jQuery Exercises'