developed during a merge... I am going to hell for this.

- also new topics tab in admin panel
This commit is contained in:
Julian Lam
2013-06-20 16:19:17 -04:00
parent cef77c2fd8
commit 32eba62ef6
9 changed files with 178 additions and 133 deletions

View File

@@ -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':