make all admin routes only accesible to admins

This commit is contained in:
Baris Soner Usakli
2013-11-28 22:29:32 -05:00
parent db98b3db55
commit c5f9f896b2
3 changed files with 32 additions and 24 deletions

View File

@@ -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);