From ebac7f79d32c524de750adc3bcf1cc539625d552 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Mon, 7 Sep 2015 14:04:18 -0400 Subject: split up partials and stub in mailbox frontend --- lib/router.js | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib/router.js') 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, }) } -- cgit v1.2.3-70-g09d2