fix(frontend): correct checkin API paths (remove duplicate /api/ prefix)
This commit is contained in:
@@ -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 })
|
||||
}),
|
||||
|
||||
Reference in New Issue
Block a user