[angular-18] app.module: replace provider withFetch with withInterceptorsFromDi
This commit is contained in:
parent
48b1c93ee4
commit
780ca3b846
|
@ -3,7 +3,7 @@ import {SharedModule} from './openaireLibrary/shared/shared.module';
|
|||
import {BrowserModule} from '@angular/platform-browser';
|
||||
import {BrowserAnimationsModule} from '@angular/platform-browser/animations';
|
||||
import {CommonModule} from '@angular/common';
|
||||
import {HTTP_INTERCEPTORS, provideHttpClient, withFetch} from '@angular/common/http';
|
||||
import {HTTP_INTERCEPTORS, provideHttpClient, withInterceptorsFromDi} from '@angular/common/http';
|
||||
import {AppComponent} from './app.component';
|
||||
import {NavigationBarModule} from './openaireLibrary/sharedComponents/navigationBar.module';
|
||||
import {CookieLawModule} from './openaireLibrary/sharedComponents/cookie-law/cookie-law.module';
|
||||
|
@ -45,7 +45,7 @@ import {LoadingModule} from "./openaireLibrary/utils/loading/loading.module";
|
|||
},
|
||||
[{ provide: HTTP_INTERCEPTORS, useClass: TimeoutInterceptor, multi: true }],
|
||||
[{ provide: DEFAULT_TIMEOUT, useValue: 3000 }],
|
||||
provideHttpClient(withFetch())
|
||||
provideHttpClient(withInterceptorsFromDi())
|
||||
] })
|
||||
|
||||
export class AppModule {
|
||||
|
|
|
@ -1 +1 @@
|
|||
Subproject commit e543d1f0f7635aad9f2189b9526e83c459ee7ea9
|
||||
Subproject commit 9c93a1e306ce7abd43e3c552a2fff0240ae2f04c
|
Loading…
Reference in New Issue