mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-06 14:05:46 +01:00
23
src/controllers/accounts/notifications.js
Normal file
23
src/controllers/accounts/notifications.js
Normal 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;
|
||||
Reference in New Issue
Block a user