Services/shows: fix
This commit is contained in:
parent
e05a26c8f3
commit
f97eae4ef0
1 changed files with 2 additions and 1 deletions
|
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue