Services/shows: refactor

This commit is contained in:
Toast 2025-02-05 02:36:04 +01:00
parent 42329818a5
commit afa9b4a4a1

View file

@ -5,6 +5,7 @@ import {ShowsApiResponse} from '../../interfaces/shows-api-response';
import {ShowsApiCreation} from '../../interfaces/shows-api-creation';
import {ShowsApiIdResponse} from '../../interfaces/shows-api-id-response';
import {ShowsApiDeletion} from '../../interfaces/shows-api-deletion';
import {Show} from '../../interfaces/show';
@Injectable({
providedIn: 'root'
@ -27,7 +28,7 @@ export class ShowsApiService {
return this.http.get<ShowsApiIdResponse>(this.showsEndpoint + "id/" + id)
}
sendShow(newShow: {}) {
sendShow(newShow: Show): Observable<ShowsApiCreation> {
return this.http.post<ShowsApiCreation>(this.showsEndpoint, newShow)
}