This commit is contained in:
Baris Soner Usakli
2014-01-26 21:32:53 -05:00
parent fb8fbb2372
commit d54e2fba9e
4 changed files with 38 additions and 48 deletions

View File

@@ -75,12 +75,12 @@ var DebugRoute = function(app) {
app.get('/test', function(req, res) {
/*topics.getTopicPosts2(2, 0, 10, 5, function(err, data) {
res.json(data);
})*/
topics.getTopicWithPosts(2, 1, 0, -1, true, function (err, topicData) {
res.json(topicData);
var db = require('./../database');
db.getSortedSetRevRange('topics:recent', 0 , -1, function(err, tids) {
res.json(tids);
});
});
});