diff --git a/src/app/app.config.ts b/src/app/app.config.ts index 7495a10..334a312 100644 --- a/src/app/app.config.ts +++ b/src/app/app.config.ts @@ -5,6 +5,7 @@ import { provideHttpClient, withInterceptors } from '@angular/common/http'; import { routes } from './app.routes'; import { cacheInterceptor } from './interceptors/cache.interceptor'; import { apiHeadersInterceptor } from './interceptors/api-headers.interceptor'; +import { mockDataInterceptor } from './interceptors/mock-data.interceptor'; import { provideServiceWorker } from '@angular/service-worker'; export const appConfig: ApplicationConfig = { @@ -16,7 +17,7 @@ export const appConfig: ApplicationConfig = { withInMemoryScrolling({ scrollPositionRestoration: 'top' }) ), provideHttpClient( - withInterceptors([apiHeadersInterceptor, cacheInterceptor]) + withInterceptors([mockDataInterceptor, apiHeadersInterceptor, cacheInterceptor]) ), provideServiceWorker('ngsw-worker.js', { enabled: !isDevMode(), diff --git a/src/environments/environment.novo.production.ts b/src/environments/environment.novo.production.ts index 6e9b307..6ca6893 100644 --- a/src/environments/environment.novo.production.ts +++ b/src/environments/environment.novo.production.ts @@ -14,5 +14,6 @@ export const environment = { phones: { armenia: '+374 98 731231', support: '+374 98 731231' - } + }, + useMockData: false }; diff --git a/src/environments/environment.novo.ts b/src/environments/environment.novo.ts index 45e4ad8..b194ed0 100644 --- a/src/environments/environment.novo.ts +++ b/src/environments/environment.novo.ts @@ -14,5 +14,6 @@ export const environment = { phones: { armenia: '+374 98 731231', support: '+374 98 731231' - } + }, + useMockData: true }; diff --git a/src/environments/environment.production.ts b/src/environments/environment.production.ts index 959264d..7c2b6e5 100644 --- a/src/environments/environment.production.ts +++ b/src/environments/environment.production.ts @@ -14,5 +14,6 @@ export const environment = { phones: { russia: '+7 (926) 459-31-57', armenia: '+374 94 86 18 16' - } + }, + useMockData: false };