mirror of
https://github.com/Unleash/unleash.git
synced 2025-01-25 00:07:47 +01:00
fix: versionInfo as part of ui-config
This commit is contained in:
parent
171b5182a5
commit
f57e056368
@ -106,16 +106,20 @@ class BootstrapController extends Controller {
|
||||
|
||||
const authenticationType =
|
||||
this.config.authentication && this.config.authentication.type;
|
||||
const versionInfo = this.versionService.getVersionInfo();
|
||||
|
||||
const uiConfig = {
|
||||
...this.config.ui,
|
||||
authenticationType,
|
||||
environment: 'test',
|
||||
unleashUrl: this.config.server.unleashUrl,
|
||||
version,
|
||||
baseUriPath: this.config.server.baseUriPath,
|
||||
versionInfo,
|
||||
};
|
||||
|
||||
res.json({
|
||||
uiConfig: {
|
||||
...this.config.ui,
|
||||
authenticationType,
|
||||
unleashUrl: this.config.server.unleashUrl,
|
||||
version,
|
||||
baseUriPath: this.config.server.baseUriPath,
|
||||
},
|
||||
version: this.versionService.getVersionInfo(),
|
||||
uiConfig,
|
||||
user: { ...req.user, permissions: userPermissions },
|
||||
email: this.emailService.isEnabled(),
|
||||
context,
|
||||
|
Loading…
Reference in New Issue
Block a user