23 lines
794 B
TypeScript
23 lines
794 B
TypeScript
import { ApplicationConfig } from '@angular/core';
|
|
import { provideRouter, withRouterConfig } from '@angular/router';
|
|
|
|
import { HTTP_INTERCEPTORS, provideHttpClient, withInterceptorsFromDi } from '@angular/common/http';
|
|
import { provideAnimationsAsync } from '@angular/platform-browser/animations/async';
|
|
import { routes } from './app.routes';
|
|
import { JwtInterceptor } from './core/interceptor/jwt.interceptor';
|
|
|
|
export const appConfig: ApplicationConfig = {
|
|
providers: [
|
|
provideRouter(
|
|
routes,
|
|
withRouterConfig({
|
|
paramsInheritanceStrategy: 'always',
|
|
onSameUrlNavigation: 'reload'
|
|
})
|
|
),
|
|
provideAnimationsAsync(),
|
|
provideHttpClient(withInterceptorsFromDi()),
|
|
{ provide: HTTP_INTERCEPTORS, useClass: JwtInterceptor, multi: true },
|
|
]
|
|
};
|