File tree 4 files changed +7
-2
lines changed
4 files changed +7
-2
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " ngx-fusio-sdk" ,
3
- "version" : " 1.1.6 " ,
3
+ "version" : " 1.1.7 " ,
4
4
"description" : " SDK to integrate Fusio into an Angular app" ,
5
5
"keywords" : [
6
6
" Fusio" ,
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ export class NavigationComponent implements OnInit {
22
22
ngOnInit ( ) : void {
23
23
this . isAuthenticated = this . consumer . hasValidToken ( ) ;
24
24
this . account = this . user . get ( ) ;
25
- this . apiUrl = this . consumer . getBaseUrl ( ) ;
25
+ this . apiUrl = this . config . getApiUrl ( ) ;
26
26
this . logo = this . config . getLogo ( ) ;
27
27
}
28
28
Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ export interface Config {
11
11
paymentCurrency ?: string ,
12
12
providers ?: Array < Provider > ,
13
13
recaptcha ?: string ,
14
+ apiUrl ?: string ,
14
15
helpUrl ?: string ,
15
16
imprintUrl ?: string ,
16
17
home ?: HomeConfig
Original file line number Diff line number Diff line change @@ -61,6 +61,10 @@ export class ConfigService {
61
61
return this . config . recaptcha ;
62
62
}
63
63
64
+ public getApiUrl ( ) : string | undefined {
65
+ return this . config . apiUrl ;
66
+ }
67
+
64
68
public getHelpUrl ( ) : string | undefined {
65
69
return this . config . helpUrl ;
66
70
}
You can’t perform that action at this time.
0 commit comments