added interceptor and authService to manage log
This commit is contained in:
+12
-9
@@ -1,13 +1,16 @@
|
||||
import { ApplicationConfig, provideBrowserGlobalErrorListeners, provideZoneChangeDetection } from '@angular/core';
|
||||
import { provideRouter } from '@angular/router';
|
||||
import {ApplicationConfig, provideBrowserGlobalErrorListeners, provideZoneChangeDetection} from '@angular/core';
|
||||
import {provideRouter} from '@angular/router';
|
||||
|
||||
import { routes } from './app.routes';
|
||||
import { provideIonicAngular } from '@ionic/angular/standalone';
|
||||
import {routes} from './app.routes';
|
||||
import {provideIonicAngular} from '@ionic/angular/standalone';
|
||||
import {provideHttpClient, withInterceptors} from "@angular/common/http";
|
||||
import {authInterceptor} from "./interceptors/auth-interceptor";
|
||||
|
||||
export const appConfig: ApplicationConfig = {
|
||||
providers: [
|
||||
provideBrowserGlobalErrorListeners(),
|
||||
provideZoneChangeDetection({ eventCoalescing: true }),
|
||||
provideRouter(routes), provideIonicAngular({})
|
||||
]
|
||||
providers: [
|
||||
provideBrowserGlobalErrorListeners(),
|
||||
provideZoneChangeDetection({eventCoalescing: true}),
|
||||
provideRouter(routes), provideIonicAngular({}),
|
||||
provideHttpClient(withInterceptors([authInterceptor]))
|
||||
]
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user