From faac2fc2e27c42af13cc25f7d4a832026698caff Mon Sep 17 00:00:00 2001 From: Toast Date: Thu, 6 Feb 2025 10:39:18 +0100 Subject: [PATCH] Services/shows: add update show function --- src/services/shows/shows-api.service.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/services/shows/shows-api.service.ts b/src/services/shows/shows-api.service.ts index 937afc4..31235a6 100644 --- a/src/services/shows/shows-api.service.ts +++ b/src/services/shows/shows-api.service.ts @@ -35,4 +35,8 @@ export class ShowsApiService { deleteShw(id: string): Observable { return this.http.delete(this.showsEndpoint + "id/" + id) } + + updateShow(show: Show): Observable { + return this.http.put(this.showsEndpoint + "id/" + show._id, show) + } }