Skip to content

Commit 88358e6

Browse files
committed
add api url
1 parent 78a8a6e commit 88358e6

File tree

4 files changed

+7
-2
lines changed

4 files changed

+7
-2
lines changed

projects/fusio-sdk/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "ngx-fusio-sdk",
3-
"version": "1.1.6",
3+
"version": "1.1.7",
44
"description": "SDK to integrate Fusio into an Angular app",
55
"keywords": [
66
"Fusio",

projects/fusio-sdk/src/lib/component/navigation/navigation.component.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export class NavigationComponent implements OnInit {
2222
ngOnInit(): void {
2323
this.isAuthenticated = this.consumer.hasValidToken();
2424
this.account = this.user.get();
25-
this.apiUrl = this.consumer.getBaseUrl();
25+
this.apiUrl = this.config.getApiUrl();
2626
this.logo = this.config.getLogo();
2727
}
2828

projects/fusio-sdk/src/lib/config/config.ts

+1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ export interface Config {
1111
paymentCurrency?: string,
1212
providers?: Array<Provider>,
1313
recaptcha?: string,
14+
apiUrl?: string,
1415
helpUrl?: string,
1516
imprintUrl?: string,
1617
home?: HomeConfig

projects/fusio-sdk/src/lib/service/config.service.ts

+4
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,10 @@ export class ConfigService {
6161
return this.config.recaptcha;
6262
}
6363

64+
public getApiUrl(): string|undefined {
65+
return this.config.apiUrl;
66+
}
67+
6468
public getHelpUrl(): string|undefined {
6569
return this.config.helpUrl;
6670
}

0 commit comments

Comments
 (0)