From dd72ab05da17309fd5ee6005cdc1fae686b5fa9e Mon Sep 17 00:00:00 2001 From: julian laplace Date: Wed, 26 Oct 2022 17:05:14 +0200 Subject: filter by keyword, thread, or username --- bucky/app/api.js | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'bucky/app/api.js') diff --git a/bucky/app/api.js b/bucky/app/api.js index a2f85d0..0645145 100644 --- a/bucky/app/api.js +++ b/bucky/app/api.js @@ -120,6 +120,7 @@ function route(app) { bucky.checkMail, function (req, res) { res.json({ + query: res.query, threads: res.threads, files: res.files, comments: res.comments, @@ -129,6 +130,16 @@ function route(app) { }); } ); + app.post( + "/api/keyword/new", + bucky.ensureLastlog, + middleware.ensureAuthenticated, + bucky.createKeyword, + function (req, res) { + res.json({ keyword: res.keyword }); + } + ); + app.post( "/api/keyword/new", bucky.ensureLastlog, -- cgit v1.2.3-70-g09d2