Node.js based forum software built for the modern web
added a route to get moderators by category id
psychobunny5145ba1aaca8
diff --git a/src/routes/api.js b/src/routes/api.jsindex 7cdd7a8589..2d22903989 100644--- a/src/routes/api.js+++ b/src/routes/api.js@@ -503,6 +503,14 @@ var path = require('path'),app.get('/500', function(req, res) {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));