Files
HIPCTF2/frontend/src/main.ts
T
2026-07-23 00:13:57 +00:00

18 lines
885 B
TypeScript

import 'zone.js';
import { bootstrapApplication } from '@angular/platform-browser';
import { provideHttpClient, withInterceptors, HttpInterceptorFn } from '@angular/common/http';
import { provideRouter, withComponentInputBinding } from '@angular/router';
import { AppComponent } from './app/app.component';
import { APP_ROUTES } from './app/app.routes';
import { authInterceptor } from './app/core/interceptors/auth.interceptor';
import { csrfInterceptor } from './app/core/interceptors/csrf.interceptor';
import { errorNotificationInterceptor } from './app/core/interceptors/error-notification.interceptor';
bootstrapApplication(AppComponent, {
providers: [
provideHttpClient(
withInterceptors([csrfInterceptor, authInterceptor, errorNotificationInterceptor]),
),
provideRouter(APP_ROUTES, withComponentInputBinding()),
],
}).catch((err) => console.error(err));