diff options
Diffstat (limited to 'frontend/app/api/client.ts')
| -rw-r--r-- | frontend/app/api/client.ts | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/frontend/app/api/client.ts b/frontend/app/api/client.ts index 26c20d1..c9647ba 100644 --- a/frontend/app/api/client.ts +++ b/frontend/app/api/client.ts @@ -108,16 +108,10 @@ class AuthenticatedApiClient { return data; } - async getTournament( - game1: number, - game2: number, - game3: number, - game4: number, - game5: number, - ) { - const { data, error } = await client.GET("/tournament", { + async getTournament(tournamentId: number) { + const { data, error } = await client.GET("/tournaments/{tournament_id}", { params: { - query: { game1, game2, game3, game4, game5 }, + path: { tournament_id: tournamentId }, }, }); if (error) throw new Error(error.message); |
