File tree Expand file tree Collapse file tree 1 file changed +11
-2
lines changed
Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -41,8 +41,7 @@ import { ProfileModule } from './profile/profile.module';
4141import { TasksModule } from './tasks/tasks.module' ;
4242import { ConfigurationWizardModule } from './configuration-wizard/configuration-wizard.module' ;
4343import { PortalModule } from '@angular/cdk/portal' ;
44- import { ApiModule } from '@fineract/client' ;
45- import { BASE_PATH } from '@fineract/client' ;
44+ import { ApiModule , Configuration , BASE_PATH } from '@fineract/client' ;
4645import { SettingsService } from './settings/settings.service' ;
4746
4847/** Main Routing Module */
@@ -121,6 +120,12 @@ export function HttpLoaderFactory(http: HttpClient) {
121120 CollectionsModule ,
122121 TasksModule ,
123122 ConfigurationWizardModule ,
123+ ApiModule . forRoot (
124+ ( ) =>
125+ new Configuration ( {
126+ basePath : '' // Empty so ApiPrefixInterceptor handles all URL construction
127+ } )
128+ ) ,
124129 AppRoutingModule ,
125130 NotFoundComponent ,
126131 CallbackComponent
@@ -133,6 +138,10 @@ export function HttpLoaderFactory(http: HttpClient) {
133138 provide : HTTP_INTERCEPTORS ,
134139 useClass : ! environment . OIDC . oidcServerEnabled ? TokenInterceptor : ZitadelTokenInterceptor ,
135140 multi : true
141+ } ,
142+ {
143+ provide : BASE_PATH ,
144+ useValue : '' // Empty so ApiPrefixInterceptor handles all URL construction
136145 }
137146 ]
138147} )
You can’t perform that action at this time.
0 commit comments