Implement OpenAPI configuration and fetching

This commit is contained in:
2025-01-25 10:28:15 +01:00
parent db63f46f5d
commit f5094cad60
24 changed files with 878 additions and 6 deletions

View File

@ -5,6 +5,9 @@ import {AppRoutingModule} from './app-routing.module';
import {AppComponent} from './app.component';
import {HelloComponent} from './hello/hello.component';
import {NavbarComponent} from './navbar/navbar.component';
import {BASE_PATH} from '../gen';
import {environment} from '../environments/environment';
import {provideHttpClient, withInterceptorsFromDi} from '@angular/common/http';
@NgModule({
declarations: [
@ -16,7 +19,10 @@ import {NavbarComponent} from './navbar/navbar.component';
AppRoutingModule,
NavbarComponent
],
providers: [],
providers: [
{provide: BASE_PATH, useValue: environment.apiBasePath},
provideHttpClient(withInterceptorsFromDi())
],
bootstrap: [AppComponent]
})
export class AppModule {