mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-14 17:56:16 +01:00
Merge branch 'master' of https://github.com/designcreateplay/NodeBB
This commit is contained in:
@@ -516,6 +516,14 @@ var path = require('path'),
|
|||||||
app.get('/500', function(req, res) {
|
app.get('/500', function(req, res) {
|
||||||
res.json({errorMessage: 'testing'});
|
res.json({errorMessage: 'testing'});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
app.namespace('/categories', function() {
|
||||||
|
app.get(':cid/moderators', function(req, res) {
|
||||||
|
categories.getModerators(req.params.cid, function(err, moderators) {
|
||||||
|
res.json({moderators: moderators});
|
||||||
|
})
|
||||||
|
});
|
||||||
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}(exports));
|
}(exports));
|
||||||
|
|||||||
Reference in New Issue
Block a user