[Trunk | Explore]: app.module.ts: Use "CacheInterceptorService" to redirect default refine queries to cache.

git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-portal/trunk@59154 d315682c-612b-4755-9ff5-7f18f6832af3
This commit is contained in:
konstantina.galouni 2020-07-21 13:21:00 +00:00
parent e0405331e5
commit 5afebcd7af
1 changed files with 7 additions and 0 deletions

View File

@ -19,6 +19,7 @@ import {AppRoutingModule} from './app-routing.module';
import {HttpInterceptorService} from "./openaireLibrary/http-interceptor.service";
import {PageURLResolverModule} from "./openaireLibrary/utils/pageURLResolver.module";
import {Schema2jsonldModule} from "./openaireLibrary/sharedComponents/schema2jsonld/schema2jsonld.module";
import {CacheInterceptorService} from "./openaireLibrary/cache-interceptor.service";
//import { EnvironmentSpecificService, REQUEST_TOKEN} from './openaireLibrary/utils/properties/environment-specific.service';
@ -35,6 +36,7 @@ import {Schema2jsonldModule} from "./openaireLibrary/sharedComponents/schema2jso
AppRoutingModule,
BrowserTransferStateModule,
BrowserAnimationsModule, PageURLResolverModule, Schema2jsonldModule
//NoopAnimationsModule
],
declarations: [AppComponent, OpenaireErrorPageComponent],
exports: [AppComponent],
@ -44,6 +46,11 @@ import {Schema2jsonldModule} from "./openaireLibrary/sharedComponents/schema2jso
useClass: EnvironmentSpecificService
},*/
EnvironmentSpecificResolver,
{
provide: HTTP_INTERCEPTORS,
useClass: CacheInterceptorService,
multi: true
},
{
provide: HTTP_INTERCEPTORS,
useClass: HttpInterceptorService,