hermes-web-angular/src/app/app.config.ts

23 lines
904 B
TypeScript
Raw Normal View History

2024-07-06 01:01:52 +00:00
import { ApplicationConfig, provideZoneChangeDetection } from '@angular/core';
import { provideRouter } from '@angular/router';
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 = {
providers: [
provideZoneChangeDetection({ eventCoalescing: true }),
provideRouter(routes),
provideHttpClient(
withInterceptors([(req: HttpRequest<unknown>, next: HttpHandlerFn) => {
console.log(req.url);
return next(req);
}])
),
provideOAuthClient(),
provideClientHydration(), provideAnimationsAsync()
]
};