diff options
author | Chocobozzz <me@florianbigard.com> | 2020-05-29 16:16:24 +0200 |
---|---|---|
committer | Chocobozzz <chocobozzz@cpy.re> | 2020-06-10 14:02:41 +0200 |
commit | 5fb2e2888ce032c638e4b75d07458642f0833e52 (patch) | |
tree | 8830d873569316889b8134027e9a43b198cca38f /server/controllers/api/config.ts | |
parent | 62e7be634bc189f942ae51cb4b080079ab503ff0 (diff) | |
download | PeerTube-5fb2e2888ce032c638e4b75d07458642f0833e52.tar.gz PeerTube-5fb2e2888ce032c638e4b75d07458642f0833e52.tar.zst PeerTube-5fb2e2888ce032c638e4b75d07458642f0833e52.zip |
First implem global search
Diffstat (limited to 'server/controllers/api/config.ts')
-rw-r--r-- | server/controllers/api/config.ts | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/server/controllers/api/config.ts b/server/controllers/api/config.ts index 41e5027b9..1d48b4b26 100644 --- a/server/controllers/api/config.ts +++ b/server/controllers/api/config.ts | |||
@@ -76,6 +76,12 @@ async function getConfig (req: express.Request, res: express.Response) { | |||
76 | remoteUri: { | 76 | remoteUri: { |
77 | users: CONFIG.SEARCH.REMOTE_URI.USERS, | 77 | users: CONFIG.SEARCH.REMOTE_URI.USERS, |
78 | anonymous: CONFIG.SEARCH.REMOTE_URI.ANONYMOUS | 78 | anonymous: CONFIG.SEARCH.REMOTE_URI.ANONYMOUS |
79 | }, | ||
80 | searchIndex: { | ||
81 | enabled: CONFIG.SEARCH.SEARCH_INDEX.ENABLED, | ||
82 | url: CONFIG.SEARCH.SEARCH_INDEX.URL, | ||
83 | disableLocalSearch: CONFIG.SEARCH.SEARCH_INDEX.DISABLE_LOCAL_SEARCH, | ||
84 | isDefaultSearch: CONFIG.SEARCH.SEARCH_INDEX.IS_DEFAULT_SEARCH | ||
79 | } | 85 | } |
80 | }, | 86 | }, |
81 | plugin: { | 87 | plugin: { |
@@ -445,7 +451,19 @@ function customConfig (): CustomConfig { | |||
445 | message: CONFIG.BROADCAST_MESSAGE.MESSAGE, | 451 | message: CONFIG.BROADCAST_MESSAGE.MESSAGE, |
446 | level: CONFIG.BROADCAST_MESSAGE.LEVEL, | 452 | level: CONFIG.BROADCAST_MESSAGE.LEVEL, |
447 | dismissable: CONFIG.BROADCAST_MESSAGE.DISMISSABLE | 453 | dismissable: CONFIG.BROADCAST_MESSAGE.DISMISSABLE |
448 | } | 454 | }, |
455 | search: { | ||
456 | remoteUri: { | ||
457 | users: CONFIG.SEARCH.REMOTE_URI.USERS, | ||
458 | anonymous: CONFIG.SEARCH.REMOTE_URI.ANONYMOUS | ||
459 | }, | ||
460 | searchIndex: { | ||
461 | enabled: CONFIG.SEARCH.SEARCH_INDEX.ENABLED, | ||
462 | url: CONFIG.SEARCH.SEARCH_INDEX.URL, | ||
463 | disableLocalSearch: CONFIG.SEARCH.SEARCH_INDEX.DISABLE_LOCAL_SEARCH, | ||
464 | isDefaultSearch: CONFIG.SEARCH.SEARCH_INDEX.IS_DEFAULT_SEARCH | ||
465 | } | ||
466 | }, | ||
449 | } | 467 | } |
450 | } | 468 | } |
451 | 469 | ||