v1
This commit is contained in:
@@ -4,6 +4,7 @@ import { Observable, throwError } from 'rxjs';
|
||||
import { catchError, tap } from 'rxjs/operators';
|
||||
import { AvisoDto, TvSettings } from './aviso.dto'; // Importiere das Interface
|
||||
import { AvisoTvTextSettingsDto } from './aviso-tv-settings.dto'; // Importiere das neue Interface
|
||||
import { environment } from '../../environments/environment';
|
||||
|
||||
// Definiere die Response Interfaces
|
||||
export interface AvisoArrivalsResponse {
|
||||
@@ -18,7 +19,7 @@ export interface AvisoArrivalsResponse {
|
||||
})
|
||||
export class AvisoService {
|
||||
|
||||
private baseUrl = 'https://localhost:7063/api/Aviso';
|
||||
private baseUrl = environment.baseUrl;
|
||||
|
||||
constructor(private http: HttpClient) { }
|
||||
|
||||
@@ -53,7 +54,7 @@ export class AvisoService {
|
||||
tap(data => console.log('AvisoService received TV Text settings data:', data)), // Logge die empfangenen Daten
|
||||
catchError(this.handleError)
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
getAvisoTvSettings(standortID: number): Observable<TvSettings[]> {
|
||||
return this.http.get<TvSettings[]>(`${this.baseUrl}/AvisoTvSettings/Standort/${standortID}`)
|
||||
|
||||
Reference in New Issue
Block a user