Make the search helper change based on the server config

This commit is contained in:
Rigel Kent 2020-02-03 15:19:43 +01:00
parent 52cc0d5485
commit 9677fca772
No known key found for this signature in database
GPG key ID: 5E53E96A494E452F
8 changed files with 62 additions and 12 deletions

View file

@ -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()
},