aboutsummaryrefslogtreecommitdiffhomepage
path: root/frontend
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2024-08-01 21:09:36 +0900
committernsfisis <nsfisis@gmail.com>2024-08-01 21:09:36 +0900
commit72012983718a8d1f1d850e24e9af3a29fb20374a (patch)
tree1037105dac7a24ce8850ad4a8d5b0b62fb5134d4 /frontend
parent6767acd3d9cc2cf5b778048ec6339b8c9123fbb5 (diff)
downloadiosdc-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.ts4
-rw-r--r--frontend/app/routes/dashboard.tsx3
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}`,
},