diff --git a/apps/api/src/app/info/info.service.ts b/apps/api/src/app/info/info.service.ts index b0e3ccb85..4da329667 100644 --- a/apps/api/src/app/info/info.service.ts +++ b/apps/api/src/app/info/info.service.ts @@ -116,19 +116,28 @@ export class InfoService { globalPermissions.push(permissions.createUserAccount); } + const [benchmarks, demoAuthToken, statistics, subscriptions, tags] = + await Promise.all([ + this.benchmarkService.getBenchmarkAssetProfiles(), + this.getDemoAuthToken(), + this.getStatistics(), + this.getSubscriptions(), + this.tagService.get() + ]); + return { ...info, + benchmarks, + demoAuthToken, globalPermissions, isReadOnlyMode, platforms, + statistics, + subscriptions, systemMessage, + tags, baseCurrency: this.configurationService.get('BASE_CURRENCY'), - benchmarks: await this.benchmarkService.getBenchmarkAssetProfiles(), - currencies: this.exchangeRateDataService.getCurrencies(), - demoAuthToken: await this.getDemoAuthToken(), - statistics: await this.getStatistics(), - subscriptions: await this.getSubscriptions(), - tags: await this.tagService.get() + currencies: this.exchangeRateDataService.getCurrencies() }; } @@ -335,7 +344,7 @@ export class InfoService { )) as string; const get = bent( - `https://betteruptime.com/api/v2/${monitorId}/398104/sla`, + `https://betteruptime.com/api/v2/monitors/${monitorId}/sla`, 'GET', 'json', 200, diff --git a/apps/client/src/app/core/auth.guard.ts b/apps/client/src/app/core/auth.guard.ts index c193017c6..ecf7d0421 100644 --- a/apps/client/src/app/core/auth.guard.ts +++ b/apps/client/src/app/core/auth.guard.ts @@ -24,6 +24,7 @@ export class AuthGuard implements CanActivate { '/faq', '/features', '/markets', + '/open', '/p', '/pricing', '/register',