14 lines
546 B
TypeScript
14 lines
546 B
TypeScript
|
|
import { bootstrapApplication } from '@angular/platform-browser';
|
||
|
|
import { provideRouter } from '@angular/router';
|
||
|
|
import { provideHttpClient, withInterceptors } from '@angular/common/http';
|
||
|
|
import { AppComponent } from './app/app.component';
|
||
|
|
import { routes } from './app/app.routes';
|
||
|
|
import { authInterceptor } from './app/core/interceptors/auth.interceptor';
|
||
|
|
|
||
|
|
bootstrapApplication(AppComponent, {
|
||
|
|
providers: [
|
||
|
|
provideRouter(routes),
|
||
|
|
provideHttpClient(withInterceptors([authInterceptor])),
|
||
|
|
],
|
||
|
|
}).catch((err) => console.error(err));
|