start working on integrating helmet plugin
This commit is contained in:
@ -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'
|
||||
|
Reference in New Issue
Block a user