mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-03 12:36:02 +01:00
developed during a merge... I am going to hell for this.
- also new topics tab in admin panel
This commit is contained in:
@@ -56,9 +56,14 @@ var user = require('./../user.js'),
|
||||
});
|
||||
}
|
||||
break;
|
||||
case 'topics' :
|
||||
categories.getCategoryById(0, 0, function(data) {
|
||||
res.json(data);
|
||||
case 'topics':
|
||||
topics.getAllTopics(function(topics) {
|
||||
topics.sort(function(a, b) {
|
||||
return b.timestamp - a.timestamp;
|
||||
});
|
||||
res.json({
|
||||
topics: topics
|
||||
});
|
||||
});
|
||||
break;
|
||||
case 'redis':
|
||||
|
||||
Reference in New Issue
Block a user