From 5afebcd7af0c930b713802e3fa97371dbb6be603 Mon Sep 17 00:00:00 2001 From: "konstantina.galouni" Date: Tue, 21 Jul 2020 13:21:00 +0000 Subject: [PATCH] [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 --- explore/src/app/app.module.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/explore/src/app/app.module.ts b/explore/src/app/app.module.ts index 7232c7bd..3b0a1f67 100755 --- a/explore/src/app/app.module.ts +++ b/explore/src/app/app.module.ts @@ -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,