WIP: substitutions
Some checks failed
Gitea/swiss-client/pipeline/head There was a failure building this commit

This commit is contained in:
2025-09-10 10:35:15 +02:00
parent 33bfde27d4
commit 929fd6b581
6 changed files with 125 additions and 2 deletions

View File

@@ -92,6 +92,10 @@ 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 addTestData(): Observable<void> {
return this.http.get<void>(`${environment.backendUrl}/testdata`);
}