From fe7ee50baa8f96836ecefa2088d129b90705125c Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Fri, 22 Dec 2017 07:46:52 +0100 Subject: new mail alert --- bucky/app/api.js | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'bucky/app/api.js') 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", -- cgit v1.2.3-70-g09d2