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 =
|
const authenticationType =
|
||||||
this.config.authentication && this.config.authentication.type;
|
this.config.authentication && this.config.authentication.type;
|
||||||
|
const versionInfo = this.versionService.getVersionInfo();
|
||||||
|
|
||||||
res.json({
|
const uiConfig = {
|
||||||
uiConfig: {
|
|
||||||
...this.config.ui,
|
...this.config.ui,
|
||||||
authenticationType,
|
authenticationType,
|
||||||
|
environment: 'test',
|
||||||
unleashUrl: this.config.server.unleashUrl,
|
unleashUrl: this.config.server.unleashUrl,
|
||||||
version,
|
version,
|
||||||
baseUriPath: this.config.server.baseUriPath,
|
baseUriPath: this.config.server.baseUriPath,
|
||||||
},
|
versionInfo,
|
||||||
version: this.versionService.getVersionInfo(),
|
};
|
||||||
|
|
||||||
|
res.json({
|
||||||
|
uiConfig,
|
||||||
user: { ...req.user, permissions: userPermissions },
|
user: { ...req.user, permissions: userPermissions },
|
||||||
email: this.emailService.isEnabled(),
|
email: this.emailService.isEnabled(),
|
||||||
context,
|
context,
|
||||||
|
Loading…
Reference in New Issue
Block a user