mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-03 12:36:02 +01:00
most of the work for #1563
This commit is contained in:
@@ -16,4 +16,16 @@ groupsController.list = function(req, res) {
|
||||
});
|
||||
};
|
||||
|
||||
groupsController.details = function(req, res) {
|
||||
groups.get(req.params.name, {
|
||||
expand: true
|
||||
}, function(err, groupObj) {
|
||||
if (!err) {
|
||||
res.render('groups/details', groupObj);
|
||||
} else {
|
||||
res.redirect('404');
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
module.exports = groupsController;
|
||||
|
||||
Reference in New Issue
Block a user