mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-06 14:05:46 +01:00
first pass #899
This commit is contained in:
@@ -24,7 +24,6 @@ var DebugRoute = function(app) {
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
app.get('/cid/:cid', function (req, res) {
|
||||
categories.getCategoryData(req.params.cid, function (err, data) {
|
||||
if (data) {
|
||||
@@ -55,24 +54,6 @@ var DebugRoute = function(app) {
|
||||
});
|
||||
});
|
||||
|
||||
app.get('/groups/prune', function(req, res) {
|
||||
var Groups = require('../groups');
|
||||
|
||||
Groups.prune(function(err) {
|
||||
res.send('pruned');
|
||||
});
|
||||
});
|
||||
|
||||
app.get('/reindex', function (req, res) {
|
||||
topics.reIndexAll(function (err) {
|
||||
if (err) {
|
||||
return res.json(err);
|
||||
} else {
|
||||
res.send('Topics and users reindexed');
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
app.get('/test', function(req, res) {
|
||||
// categories.getModerators(1, function(err, mods) {
|
||||
// res.json(mods);
|
||||
|
||||
Reference in New Issue
Block a user