From d8869a441c0e4f2f0a65396bf11bdddd958207e8 Mon Sep 17 00:00:00 2001 From: "s0wlz (Matthias Puchstein)" Date: Wed, 29 Apr 2026 01:20:26 +0200 Subject: [PATCH] fix(frontend): correct checkin API paths (remove duplicate /api/ prefix) --- frontend/src/lib/api.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/frontend/src/lib/api.ts b/frontend/src/lib/api.ts index 15924f4..ba6b19a 100644 --- a/frontend/src/lib/api.ts +++ b/frontend/src/lib/api.ts @@ -125,10 +125,10 @@ export const api = { } }, checkin: { - getInfo: (code: string) => request(`/api/checkin/${code}`), - getStudents: (code: string) => request(`/api/checkin/${code}/students`), - post: (code: string, student_id: number, seat_id?: string) => - request('/api/checkin', { + getInfo: (code: string) => request(`/checkin/${code}`), + getStudents: (code: string) => request(`/checkin/${code}/students`), + post: (code: string, student_id: number, seat_id?: string) => + request('/checkin', { method: 'POST', body: JSON.stringify({ code, student_id, seat_id }) }),