mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-05 13:36:01 +01:00
24 lines
524 B
JavaScript
24 lines
524 B
JavaScript
|
|
'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;
|