forge
Explore
Log in

Don't you dare go Hollow

hezarfen_frontend

Clone
★ 0

0 watching0 forksTypeScript5.5 MiBdcf123aBurak Boduroğlu2 months ago674 commits

getStudentAttempts.ts6 lines, 372 bytesHistoryRawDownload
1import { client } from "@/api/client";
2
3/** Sitting seqs a student has for this exam, ascending (e.g. [1, 2]). Grader-only. */
4export async function getStudentAttempts(examId: string, userId: string, signal?: AbortSignal): Promise<number[]> {
5 return client<number[]>(`/exams/${encodeURIComponent(examId)}/students/${encodeURIComponent(userId)}/attempts`, { signal });
6}