Implement OpenAPI configuration and fetching
This commit is contained in:
@ -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 {
|
||||
|
Reference in New Issue
Block a user