fix(frontend): correct checkin API paths (remove duplicate /api/ prefix)

This commit is contained in:
2026-04-29 01:20:26 +02:00
parent 0c5afb7e29
commit d8869a441c

View File

@@ -125,10 +125,10 @@ export const api = {
}
},
checkin: {
getInfo: (code: string) => request<any>(`/api/checkin/${code}`),
getStudents: (code: string) => request<any[]>(`/api/checkin/${code}/students`),
post: (code: string, student_id: number, seat_id?: string) =>
request<any>('/api/checkin', {
getInfo: (code: string) => request<any>(`/checkin/${code}`),
getStudents: (code: string) => request<any[]>(`/checkin/${code}/students`),
post: (code: string, student_id: number, seat_id?: string) =>
request<any>('/checkin', {
method: 'POST',
body: JSON.stringify({ code, student_id, seat_id })
}),