Services/shows: fix

This commit is contained in:
Toast 2025-02-03 13:40:01 +01:00
parent e05a26c8f3
commit f97eae4ef0

View file

@ -2,6 +2,7 @@ import {inject, Injectable} from '@angular/core';
import {HttpClient} from '@angular/common/http';
import {Observable} from 'rxjs';
import {ShowsApiResponse} from '../../interfaces/shows-api-response';
import {ShowsApiCreation} from '../../interfaces/shows-api-creation';
@Injectable({
providedIn: 'root'
@ -21,6 +22,6 @@ export class ShowsApiService {
}
sendShow(newShow: {}) {
return this.http.post(this.showsEndpoint, newShow)
return this.http.post<ShowsApiCreation>(this.showsEndpoint, newShow)
}
}