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) }