1
0
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:
Ivar Conradi Østhus 2021-05-11 14:59:16 +02:00
parent 171b5182a5
commit f57e056368
No known key found for this signature in database
GPG Key ID: 31AC596886B0BD09

View File

@ -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,