From 08ac33fbd67e115f50855f310f192a4d38fcaf50 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Wed, 24 Jan 2018 13:07:23 +0100 Subject: begin keyword dump endpoint, add search rebuild endpoint --- bucky/app/api.js | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) (limited to 'bucky/app/api.js') diff --git a/bucky/app/api.js b/bucky/app/api.js index 44c4982..7a0e068 100644 --- a/bucky/app/api.js +++ b/bucky/app/api.js @@ -219,6 +219,11 @@ function route (app){ search.logQuery, search.success ) + app.get("/api/search/build", + middleware.ensureAuthenticated, + bucky.checkIsAdmin, + search.rebuild + ) /* keywords */ @@ -254,7 +259,19 @@ function route (app){ threads: res.threads, }) }) - + // app.get("/api/keyword/:keyword/full", + // middleware.ensureAuthenticated, + // bucky.ensureKeyword, + // bucky.ensureThreadsForKeyword, + // bucky.filterPrivateThreads, + // bucky.ensureFilesForThreads, + // bucky.ensureCommentsForThreads, + // function(req, res){ + // res.json({ + // keyword: res.keyword, + // threads: res.threads, + // }) + // }) /* mail */ -- cgit v1.2.3-70-g09d2