From afa9b4a4a1164926579b73445c788f1a867c3a1d Mon Sep 17 00:00:00 2001 From: Toast Date: Wed, 5 Feb 2025 02:36:04 +0100 Subject: [PATCH] Services/shows: refactor --- src/services/shows/shows-api.service.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/services/shows/shows-api.service.ts b/src/services/shows/shows-api.service.ts index 4a65bfd..a868129 100644 --- a/src/services/shows/shows-api.service.ts +++ b/src/services/shows/shows-api.service.ts @@ -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(this.showsEndpoint + "id/" + id) } - sendShow(newShow: {}) { + sendShow(newShow: Show): Observable { return this.http.post(this.showsEndpoint, newShow) }