diff options
| author | julian laplace <julescarbon@gmail.com> | 2022-10-25 23:26:31 +0200 |
|---|---|---|
| committer | julian laplace <julescarbon@gmail.com> | 2022-10-25 23:26:31 +0200 |
| commit | 1cfed2612fd1042a15d470a44ec87588c966dc12 (patch) | |
| tree | ba850f589194a21fd1587dd71dfcd056a242e4ac /bucky/app/api.js | |
| parent | ae311b71cccf5df9e0e19e276615cc32426d9de1 (diff) | |
hootstream... dark mode only
Diffstat (limited to 'bucky/app/api.js')
| -rw-r--r-- | bucky/app/api.js | 25 |
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, |
