summaryrefslogtreecommitdiff
path: root/bucky/app/api.js
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2018-01-24 13:07:23 +0100
committerJules Laplace <julescarbon@gmail.com>2018-01-24 13:07:23 +0100
commit08ac33fbd67e115f50855f310f192a4d38fcaf50 (patch)
tree63ec4d13306e0b480fe3a21543fd2b97537808dc /bucky/app/api.js
parent3ce1a44ab308f4c483541944aa777ec8aa91af2b (diff)
begin keyword dump endpoint, add search rebuild endpoint
Diffstat (limited to 'bucky/app/api.js')
-rw-r--r--bucky/app/api.js19
1 files changed, 18 insertions, 1 deletions
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 */