aboutsummaryrefslogtreecommitdiffhomepage
path: root/shared
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2021-03-24 09:16:48 +0100
committerChocobozzz <me@florianbigard.com>2021-03-24 18:18:41 +0100
commit74a4d53110ebc073dafeb74a7ac815fe00f4706b (patch)
treec09797245d4ea1093b7bc7e61f925aef9e554b02 /shared
parenteebd9838f067369031af9770b899f75f30810549 (diff)
downloadPeerTube-74a4d53110ebc073dafeb74a7ac815fe00f4706b.tar.gz
PeerTube-74a4d53110ebc073dafeb74a7ac815fe00f4706b.tar.zst
PeerTube-74a4d53110ebc073dafeb74a7ac815fe00f4706b.zip
Add server hooks for search endpoint
Diffstat (limited to 'shared')
-rw-r--r--shared/models/plugins/server-hook.model.ts10
1 files changed, 10 insertions, 0 deletions
diff --git a/shared/models/plugins/server-hook.model.ts b/shared/models/plugins/server-hook.model.ts
index d28f76dfe..88277af5a 100644
--- a/shared/models/plugins/server-hook.model.ts
+++ b/shared/models/plugins/server-hook.model.ts
@@ -18,6 +18,16 @@ export const serverFilterHookObject = {
18 'filter:api.user.me.videos.list.params': true, 18 'filter:api.user.me.videos.list.params': true,
19 'filter:api.user.me.videos.list.result': true, 19 'filter:api.user.me.videos.list.result': true,
20 20
21 // Filter params/results to search videos/channels in the DB or on the remote index
22 'filter:api.search.videos.local.list.params': true,
23 'filter:api.search.videos.local.list.result': true,
24 'filter:api.search.videos.index.list.params': true,
25 'filter:api.search.videos.index.list.result': true,
26 'filter:api.search.video-channels.local.list.params': true,
27 'filter:api.search.video-channels.local.list.result': true,
28 'filter:api.search.video-channels.index.list.params': true,
29 'filter:api.search.video-channels.index.list.result': true,
30
21 // Filter the result of the get function 31 // Filter the result of the get function
22 // Used to get detailed video information (video watch page for example) 32 // Used to get detailed video information (video watch page for example)
23 'filter:api.video.get.result': true, 33 'filter:api.video.get.result': true,