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 "../client"; |
| 2 | import type { ExamQuestion } from "../client"; |
| 3 | |
| 4 | /** Copy a bank question into this exam; `subjectId` is the exam-side subject. */ |
| 5 | export function postExamQuestionFromBank( |
| 6 | examId: string, |
| 7 | bankQuestionId: string, |
| 8 | subjectId: string, |
| 9 | ): Promise<ExamQuestion> { |
| 10 | return client<ExamQuestion>(`/exams/${examId}/questions/from-bank/${bankQuestionId}`, { |
| 11 | method: "POST", |
| 12 | body: { subject_id: subjectId }, |
| 13 | }); |
| 14 | } |