From 9677fca772349248925da6c5f34f600e9a2abbe6 Mon Sep 17 00:00:00 2001 From: Rigel Kent Date: Mon, 3 Feb 2020 15:19:43 +0100 Subject: Make the search helper change based on the server config --- server/controllers/api/config.ts | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'server/controllers/api') diff --git a/server/controllers/api/config.ts b/server/controllers/api/config.ts index 69940f395..a383a723f 100644 --- a/server/controllers/api/config.ts +++ b/server/controllers/api/config.ts @@ -73,6 +73,12 @@ async function getConfig (req: express.Request, res: express.Response) { css: CONFIG.INSTANCE.CUSTOMIZATIONS.CSS } }, + search: { + remoteUri: { + users: CONFIG.SEARCH.REMOTE_URI.USERS, + anonymous: CONFIG.SEARCH.REMOTE_URI.ANONYMOUS + } + }, plugin: { registered: getRegisteredPlugins() }, -- cgit v1.2.3