Skip to content

Commit

Permalink
Add Changelog entry, remove unneeded code
Browse files Browse the repository at this point in the history
  • Loading branch information
vej-ananas committed Nov 20, 2024
1 parent 58f1aff commit a5573cb
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,6 @@

### Changed

- Config is loaded from the frontend at runtime now.

### Fixed
14 changes: 7 additions & 7 deletions ui/src/api/client-config.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
export interface ClientConfig {
'env': 'dev' | 'int' | 'prod',
'ion_default_access_token': string,
'auth': {
'cognito_client_id': string,
'cognito_pool_id': string,
'cognito_identity_pool_id': string,
'cognito_aws_region': string,
env: 'dev' | 'int' | 'prod',
ion_default_access_token: string,
auth: {
cognito_client_id: string,
cognito_pool_id: string,
cognito_identity_pool_id: string,
cognito_aws_region: string,
}
}
2 changes: 0 additions & 2 deletions ui/src/api/config.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,9 @@ export class ConfigService {
}

async getConfig(): Promise<ClientConfig | null> {
const headers = {};
try {
const response = await fetch(`${this.apiUrl}/client-config`, {
method: 'GET',
headers: headers,
});
return await response.json() as ClientConfig;
} catch (e) {
Expand Down

0 comments on commit a5573cb

Please sign in to comment.