hezarfen_frontend
Clone
https://git.tahinli.com/Hezarfen/hezarfen_frontend.git
0 watching0 forksTypeScript5.5 MiBdcf123aBurak Boduroğlu2 months ago674 commits
| 1 | import { client } from "@/api/client"; |
| 2 | import type { StudentAnswerSheet } from "@/api/client"; |
| 3 | |
| 4 | /** Grader view of a specific past sitting's answer sheet (same shape as the current attempt). */ |
| 5 | export async function getStudentAttemptAnswers( |
| 6 | examId: string, |
| 7 | userId: string, |
| 8 | seq: number, |
| 9 | signal?: AbortSignal, |
| 10 | ): Promise<StudentAnswerSheet> { |
| 11 | return client<StudentAnswerSheet>( |
| 12 | `/exams/${encodeURIComponent(examId)}/students/${encodeURIComponent(userId)}/attempts/${seq}/answers`, |
| 13 | { signal }, |
| 14 | ); |
| 15 | } |