diff options
Diffstat (limited to 'bucky/app/api.js')
| -rw-r--r-- | bucky/app/api.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/bucky/app/api.js b/bucky/app/api.js index 63e480e..f0474a4 100644 --- a/bucky/app/api.js +++ b/bucky/app/api.js @@ -52,11 +52,13 @@ function route (app){ bucky.ensureKeywordsForThreads, bucky.ensureHootbox, bucky.bumpLastSeen, + bucky.checkMail, function(req, res){ res.json({ threads: res.threads, hootbox: res.hootbox, lastlog: res.lastlog, + mail: res.mail, }) }) app.post("/api/keyword/new", @@ -75,12 +77,14 @@ function route (app){ bucky.ensureFileCountsForThreads, bucky.ensureKeywordsForThreads, bucky.ensureHootbox, + bucky.checkMail, function(req, res){ res.json({ keyword: res.keyword, threads: res.threads, hootbox: res.hootbox, lastlog: res.lastlog, + mail: res.mail, }) }) app.get("/api/thread/:id", |
