summaryrefslogtreecommitdiff
path: root/bucky/app/api.js
diff options
context:
space:
mode:
Diffstat (limited to 'bucky/app/api.js')
-rw-r--r--bucky/app/api.js25
1 files changed, 25 insertions, 0 deletions
diff --git a/bucky/app/api.js b/bucky/app/api.js
index 857849e..a2f85d0 100644
--- a/bucky/app/api.js
+++ b/bucky/app/api.js
@@ -98,6 +98,31 @@ function route(app) {
function (req, res) {
res.json({
threads: res.threads,
+ hootstream: res.hootstream,
+ hootbox: res.hootbox,
+ lastlog: res.lastlog,
+ mail: res.mail,
+ });
+ }
+ );
+ app.get(
+ "/api/stream",
+ bucky.ensureLastlog,
+ middleware.ensureAuthenticated,
+ // bucky.ensureLatestThreads,
+ bucky.ensureHootbox,
+ bucky.ensureHootstream,
+ privacy.filterPrivateThreads,
+ bucky.ensureCommentCountsForThreads,
+ bucky.ensureFileCountsForThreads,
+ bucky.ensureKeywordsForThreads,
+ bucky.bumpLastSeen,
+ bucky.checkMail,
+ function (req, res) {
+ res.json({
+ threads: res.threads,
+ files: res.files,
+ comments: res.comments,
hootbox: res.hootbox,
lastlog: res.lastlog,
mail: res.mail,