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