Configure proxy for API requests and remove hardcoded apiUrl from environment files.

This commit is contained in:
2025-09-24 21:47:55 +02:00
parent 4878ad9f0d
commit 2a0f38aa28
3 changed files with 5 additions and 12 deletions
-3
View File
@@ -3,15 +3,12 @@ import {AppComponent} from './app/app.component';
import {provideRouter} from '@angular/router';
import {routes} from './app/app.routes';
import {provideHttpClient, withInterceptors} from '@angular/common/http';
import {BASE_PATH} from '@api';
import {environment} from '@environment';
import {authInterceptor} from '@services/AuthInterceptor';
bootstrapApplication(AppComponent, {
providers: [
provideRouter(routes),
provideHttpClient(),
{provide: BASE_PATH, useValue: environment.apiUrl},
provideHttpClient(
withInterceptors([authInterceptor])
),