init rewards system

This commit is contained in:
psychobunny
2015-02-19 14:20:13 -05:00
parent da305210e2
commit bdcf090aaa
6 changed files with 95 additions and 0 deletions

View File

@@ -304,6 +304,15 @@ adminController.extend.widgets = function(req, res, next) {
});
};
adminController.extend.rewards = function(req, res, next) {
require('../rewards/admin').get(function(err, data) {
if (err) {
return next(err);
}
res.render('admin/extend/rewards', data);
});
};
adminController.groups.get = function(req, res, next) {
groups.list({