This commit is contained in:
@@ -5,6 +5,7 @@ import {Tournament} from "../model/tournament";
|
||||
import {TournamentValidation} from "../model/tournamentValidation";
|
||||
import {Result} from "../model/result";
|
||||
import { environment } from "../../environments/environment"
|
||||
import {TournamentPlayerSubstitution} from "../model/tournamentPlayer";
|
||||
|
||||
@Injectable({
|
||||
providedIn: 'root'
|
||||
@@ -92,8 +93,8 @@ export class TournamentService {
|
||||
return this.http.patch<void>(`${this.tournamentsUrl}/${tournamentId}/players/${playerId}/present/${paid}`, null);
|
||||
}
|
||||
|
||||
public playerSubstitute(tournamentId: number, playerId: number, substituteId: number): Observable<Tournament> {
|
||||
return this.http.post<Tournament>(`${this.tournamentsUrl}/${tournamentId}/players/${playerId}/substitute/${substituteId}`, null)
|
||||
public playerSubstitute(tournamentId: number, playerId: number, substitutions: TournamentPlayerSubstitution[]): Observable<Tournament> {
|
||||
return this.http.post<Tournament>(`${this.tournamentsUrl}/${tournamentId}/players/${playerId}/substitutions`, substitutions)
|
||||
}
|
||||
|
||||
public addTestData(): Observable<void> {
|
||||
|
||||
Reference in New Issue
Block a user