Skip to content

Commit

Permalink
fix: versionInfo as part of ui-config
Browse files Browse the repository at this point in the history
  • Loading branch information
ivarconr committed May 11, 2021
1 parent 171b518 commit f57e056
Showing 1 changed file with 12 additions and 8 deletions.
20 changes: 12 additions & 8 deletions src/lib/routes/admin-api/bootstrap-controller.ts
Expand Up @@ -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,
Expand Down

0 comments on commit f57e056

Please sign in to comment.