summaryrefslogtreecommitdiff
path: root/lib/router.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/router.js')
-rw-r--r--lib/router.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/router.js b/lib/router.js
index d8e75c0..92c0054 100644
--- a/lib/router.js
+++ b/lib/router.js
@@ -64,12 +64,14 @@ module.exports = function(app){
})
app.get("/api/keyword/:keyword",
+ bucky.ensureKeyword,
bucky.ensureThreadsForKeyword,
bucky.ensureCommentCountsForThreads,
bucky.ensureFileCountsForThreads,
bucky.ensureKeywordsForThreads,
function(req, res){
res.json({
+ keyword: res.keyword,
threads: res.threads,
})
}