diff --git a/frontend/src/app/core/core.module.ts b/frontend/src/app/core/core.module.ts index ad21879..f424771 100644 --- a/frontend/src/app/core/core.module.ts +++ b/frontend/src/app/core/core.module.ts @@ -19,6 +19,7 @@ import { FormsModule, ReactiveFormsModule } from '@angular/forms'; import { SharedModule } from '../shared/shared.module'; import { SearchPopupEntryLineComponent } from './components/search-popup-entry-line/search-popup-entry-line.component'; import { ScrollService } from './services/scroll.service'; +import { ConfigService } from './services/config.service'; @NgModule({ declarations: [ @@ -35,16 +36,17 @@ import { ScrollService } from './services/scroll.service'; ReactiveFormsModule, ], providers: [ - TmdbService, - LibraryService, - EntryService, - EntrySeenService, CollectionService, - ToggleService, - EpisodeService, + EntrySeenService, + EntryService, EpisodeSeenService, + EpisodeService, + LibraryService, SeasonService, + + TmdbService, + ConfigService, ScrollService, ToggleService, ThemeService, diff --git a/frontend/src/app/core/services/config.service.ts b/frontend/src/app/core/services/config.service.ts new file mode 100644 index 0000000..b6fd669 --- /dev/null +++ b/frontend/src/app/core/services/config.service.ts @@ -0,0 +1,22 @@ +import { Injectable } from '@angular/core'; +import { environment } from '../../../environments/environment'; + +@Injectable({ + providedIn: 'root', +}) +export class ConfigService { + constructor() {} + + public getBackendApiUrl(): string { + return environment.API_URL; + } + + public getTmdbApiUrl(): string { + return environment.TMDB_API_URL; + } + + public getTmdbApiKey(): string { + return environment.TMDB_API_KEY; + } + +}