Spaces:
Running
Running
Update flare-ui/src/main.ts
Browse files- flare-ui/src/main.ts +6 -9
flare-ui/src/main.ts
CHANGED
@@ -1,23 +1,20 @@
|
|
|
|
1 |
import { bootstrapApplication } from '@angular/platform-browser';
|
2 |
import { provideRouter } from '@angular/router';
|
3 |
import { provideAnimations } from '@angular/platform-browser/animations';
|
4 |
-
import { provideHttpClient, withInterceptors
|
5 |
-
import { importProvidersFrom } from '@angular/core';
|
6 |
|
7 |
import { AppComponent } from './app/app.component';
|
8 |
import { routes } from './app/app.routes';
|
9 |
-
import {
|
10 |
|
11 |
bootstrapApplication(AppComponent, {
|
12 |
providers: [
|
13 |
provideRouter(routes),
|
14 |
provideAnimations(),
|
15 |
-
provideHttpClient(
|
16 |
-
|
17 |
-
|
18 |
-
useClass: LoadingInterceptor,
|
19 |
-
multi: true
|
20 |
-
}
|
21 |
]
|
22 |
}).then(() => {
|
23 |
// Uygulama tamamen yüklendiğinde initial loader'ı kaldır
|
|
|
1 |
+
|
2 |
import { bootstrapApplication } from '@angular/platform-browser';
|
3 |
import { provideRouter } from '@angular/router';
|
4 |
import { provideAnimations } from '@angular/platform-browser/animations';
|
5 |
+
import { provideHttpClient, withInterceptors } from '@angular/common/http';
|
|
|
6 |
|
7 |
import { AppComponent } from './app/app.component';
|
8 |
import { routes } from './app/app.routes';
|
9 |
+
import { authInterceptor } from './app/interceptors/auth.interceptor';
|
10 |
|
11 |
bootstrapApplication(AppComponent, {
|
12 |
providers: [
|
13 |
provideRouter(routes),
|
14 |
provideAnimations(),
|
15 |
+
provideHttpClient(
|
16 |
+
withInterceptors([authInterceptor])
|
17 |
+
)
|
|
|
|
|
|
|
18 |
]
|
19 |
}).then(() => {
|
20 |
// Uygulama tamamen yüklendiğinde initial loader'ı kaldır
|