accounts refactor #2

and various 404 fixes
This commit is contained in:
barisusakli
2015-09-25 13:11:11 -04:00
parent 3bb5d2aa86
commit e5e41e85f2
13 changed files with 551 additions and 472 deletions

View File

@@ -0,0 +1,23 @@
'use strict';
var user = require('../../user'),
helpers = require('../helpers');
var notificationsController = {};
notificationsController.get = function(req, res, next) {
user.notifications.getAll(req.uid, 40, function(err, notifications) {
if (err) {
return next(err);
}
res.render('notifications', {
notifications: notifications,
title: '[[pages:notifications]]',
breadcrumbs: helpers.buildBreadcrumbs([{text: '[[pages:notifications]]'}])
});
});
};
module.exports = notificationsController;