hezarfen_frontend
Clone
https://git.tahinli.com/archive/hezarfen_frontend.git
0 watching0 forksTypeScript5.5 MiBd962efeBurak Boduroğlu4 months ago146 commits
| 1 | import { client } from "./client"; |
| 2 | import { normalizePage, pageQuery, type Page, type PageParams } from "./page"; |
| 3 | import type { ExamQuestion } from "./types"; |
| 4 | |
| 5 | export async function getExamQuestions( |
| 6 | examId: string, |
| 7 | params?: PageParams, |
| 8 | signal?: AbortSignal, |
| 9 | ): Promise<Page<ExamQuestion>> { |
| 10 | const data = await client<unknown>(`/exams/${examId}/questions${pageQuery(params)}`, { signal }); |
| 11 | return normalizePage<ExamQuestion>(data); |
| 12 | } |