pagination on posts

This commit is contained in:
Baris Soner Usakli
2014-01-24 20:00:56 -05:00
parent 8d007e7029
commit 606367701f
8 changed files with 232 additions and 32 deletions

View File

@@ -74,7 +74,13 @@ var DebugRoute = function(app) {
});
app.get('/test', function(req, res) {
res.send();
/*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);
});
});
});