File tree Expand file tree Collapse file tree 4 files changed +7
-2
lines changed Expand file tree Collapse file tree 4 files changed +7
-2
lines changed Original file line number Diff line number Diff line change 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" ,
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments