forge
Explore
Log in

Don't you dare go Hollow

hezarfen_frontend

Clone
★ 0

0 watching0 forksTypeScript5.5 MiB4e0a329Burak Boduroğlu2 months ago537 commits

getCourseExams.ts12 lines, 426 bytesHistoryRawDownload
1import { client } from "../client";
2import { normalizePage, pageQuery, type Page, type PageParams } from "../client";
3import type { Exam } from "../client";
4
5export async function getCourseExams(
6 courseId: string,
7 params?: PageParams,
8 signal?: AbortSignal,
9): Promise<Page<Exam>> {
10 const data = await client<unknown>(`/courses/${courseId}/exams${pageQuery(params)}`, { signal });
11 return normalizePage<Exam>(data);
12}