This commit is contained in:
sdarbinyan
2026-03-01 02:43:14 +04:00
parent 350581cbe9
commit 3445f55758
4 changed files with 8 additions and 4 deletions

View File

@@ -5,6 +5,7 @@ import { provideHttpClient, withInterceptors } from '@angular/common/http';
import { routes } from './app.routes'; import { routes } from './app.routes';
import { cacheInterceptor } from './interceptors/cache.interceptor'; import { cacheInterceptor } from './interceptors/cache.interceptor';
import { apiHeadersInterceptor } from './interceptors/api-headers.interceptor'; import { apiHeadersInterceptor } from './interceptors/api-headers.interceptor';
import { mockDataInterceptor } from './interceptors/mock-data.interceptor';
import { provideServiceWorker } from '@angular/service-worker'; import { provideServiceWorker } from '@angular/service-worker';
export const appConfig: ApplicationConfig = { export const appConfig: ApplicationConfig = {
@@ -16,7 +17,7 @@ export const appConfig: ApplicationConfig = {
withInMemoryScrolling({ scrollPositionRestoration: 'top' }) withInMemoryScrolling({ scrollPositionRestoration: 'top' })
), ),
provideHttpClient( provideHttpClient(
withInterceptors([apiHeadersInterceptor, cacheInterceptor]) withInterceptors([mockDataInterceptor, apiHeadersInterceptor, cacheInterceptor])
), ),
provideServiceWorker('ngsw-worker.js', { provideServiceWorker('ngsw-worker.js', {
enabled: !isDevMode(), enabled: !isDevMode(),

View File

@@ -14,5 +14,6 @@ export const environment = {
phones: { phones: {
armenia: '+374 98 731231', armenia: '+374 98 731231',
support: '+374 98 731231' support: '+374 98 731231'
} },
useMockData: false
}; };

View File

@@ -14,5 +14,6 @@ export const environment = {
phones: { phones: {
armenia: '+374 98 731231', armenia: '+374 98 731231',
support: '+374 98 731231' support: '+374 98 731231'
} },
useMockData: true
}; };

View File

@@ -14,5 +14,6 @@ export const environment = {
phones: { phones: {
russia: '+7 (926) 459-31-57', russia: '+7 (926) 459-31-57',
armenia: '+374 94 86 18 16' armenia: '+374 94 86 18 16'
} },
useMockData: false
}; };