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:
parent
781a300bf7
commit
9f3ca73075
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user