mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-01 11:35:55 +01:00
make all admin routes only accesible to admins
This commit is contained in:
@@ -735,22 +735,6 @@ var path = require('path'),
|
||||
});
|
||||
});
|
||||
|
||||
app.get('/reindex', function (req, res) {
|
||||
topics.reIndexAll(function (err) {
|
||||
if (err) {
|
||||
return res.json(err);
|
||||
}
|
||||
|
||||
user.reIndexAll(function (err) {
|
||||
if (err) {
|
||||
return res.json(err);
|
||||
} else {
|
||||
res.send('Topics and users reindexed');
|
||||
}
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
// Other routes
|
||||
require('./routes/plugins')(app);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user