diff options
| author | nsfisis <nsfisis@gmail.com> | 2024-08-01 21:09:36 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2024-08-01 21:09:36 +0900 |
| commit | 72012983718a8d1f1d850e24e9af3a29fb20374a (patch) | |
| tree | 1037105dac7a24ce8850ad4a8d5b0b62fb5134d4 /frontend | |
| parent | 6767acd3d9cc2cf5b778048ec6339b8c9123fbb5 (diff) | |
| download | iosdc-japan-2024-albatross-72012983718a8d1f1d850e24e9af3a29fb20374a.tar.gz iosdc-japan-2024-albatross-72012983718a8d1f1d850e24e9af3a29fb20374a.tar.zst iosdc-japan-2024-albatross-72012983718a8d1f1d850e24e9af3a29fb20374a.zip | |
refactor: remove `player_id` parameter from `/api/games`
Diffstat (limited to 'frontend')
| -rw-r--r-- | frontend/app/.server/api/schema.d.ts | 4 | ||||
| -rw-r--r-- | frontend/app/routes/dashboard.tsx | 3 |
2 files changed, 1 insertions, 6 deletions
diff --git a/frontend/app/.server/api/schema.d.ts b/frontend/app/.server/api/schema.d.ts index 3ef97ab..1adfc86 100644 --- a/frontend/app/.server/api/schema.d.ts +++ b/frontend/app/.server/api/schema.d.ts @@ -349,9 +349,7 @@ export interface operations { }; getGames: { parameters: { - query?: { - player_id?: number; - }; + query?: never; header: { Authorization: string; }; diff --git a/frontend/app/routes/dashboard.tsx b/frontend/app/routes/dashboard.tsx index 3cc8e13..08780f9 100644 --- a/frontend/app/routes/dashboard.tsx +++ b/frontend/app/routes/dashboard.tsx @@ -17,9 +17,6 @@ export async function loader({ request }: LoaderFunctionArgs) { } const { data, error } = await apiClient.GET("/games", { params: { - query: { - player_id: user.user_id, - }, header: { Authorization: `Bearer ${token}`, }, |
