2024-07-06 01:01:52 +00:00
|
|
|
import { ApplicationConfig, provideZoneChangeDetection } from '@angular/core';
|
|
|
|
import { provideRouter } from '@angular/router';
|
2024-10-17 08:48:15 +00:00
|
|
|
import { provideOAuthClient } from 'angular-oauth2-oidc';
|
|
|
|
import { HttpHandlerFn, HttpRequest, provideHttpClient, withInterceptors } from '@angular/common/http';
|
|
|
|
import { provideAnimationsAsync } from '@angular/platform-browser/animations/async';
|
2024-07-06 01:01:52 +00:00
|
|
|
|
|
|
|
import { routes } from './app.routes';
|
|
|
|
import { provideClientHydration } from '@angular/platform-browser';
|
|
|
|
|
|
|
|
export const appConfig: ApplicationConfig = {
|
2024-10-17 08:48:15 +00:00
|
|
|
providers: [
|
|
|
|
provideZoneChangeDetection({ eventCoalescing: true }),
|
|
|
|
provideRouter(routes),
|
|
|
|
provideHttpClient(
|
|
|
|
withInterceptors([(req: HttpRequest<unknown>, next: HttpHandlerFn) => {
|
|
|
|
console.log(req.url);
|
|
|
|
return next(req);
|
|
|
|
}])
|
|
|
|
),
|
|
|
|
provideOAuthClient(),
|
|
|
|
provideClientHydration(), provideAnimationsAsync()
|
|
|
|
]
|
|
|
|
};
|