Files
FastCheck/src/app/app.config.ts

21 lines
661 B
TypeScript
Raw Normal View History

2026-06-01 00:21:58 +04:00
import { APP_INITIALIZER, ApplicationConfig, provideBrowserGlobalErrorListeners } from '@angular/core';
2026-01-19 14:09:12 +04:00
import { provideRouter } from '@angular/router';
2026-05-06 23:26:00 +04:00
import { provideHttpClient } from '@angular/common/http';
2026-01-19 14:09:12 +04:00
2026-06-01 00:21:58 +04:00
import { AuthSessionService } from './auth-session.service';
2026-01-19 14:09:12 +04:00
import { routes } from './app.routes';
export const appConfig: ApplicationConfig = {
providers: [
provideBrowserGlobalErrorListeners(),
2026-01-23 00:52:04 +04:00
provideRouter(routes),
2026-06-01 00:21:58 +04:00
provideHttpClient(),
{
provide: APP_INITIALIZER,
multi: true,
deps: [AuthSessionService],
useFactory: (authSession: AuthSessionService) => () => authSession.initialize()
}
2026-01-19 14:09:12 +04:00
]
};