1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-12-22 19:07:54 +01:00

fix: expose auth-type in ui-config

This commit is contained in:
Ivar Conradi Østhus 2021-04-15 11:29:53 +02:00
parent 781a300bf7
commit 9f3ca73075
No known key found for this signature in database
GPG Key ID: 31AC596886B0BD09

View File

@ -6,8 +6,12 @@ class ConfigController extends Controller {
constructor(config, { versionService }) { constructor(config, { versionService }) {
super(config); super(config);
this.versionService = versionService; this.versionService = versionService;
const authenticationType = config.authentication.type;
this.uiConfig = { this.uiConfig = {
...config.ui, ...config.ui,
authenticationType,
unleashUrl: config.unleashUrl,
baseUriPath: config.baseUriPath,
version: config.version, version: config.version,
}; };
this.get('/', this.getUIConfig); this.get('/', this.getUIConfig);