hezarfen_frontend
Clone
https://git.tahinli.com/archive/hezarfen_frontend.git
0 watching0 forksTypeScript5.5 MiBdcf123aBurak Boduroğlu2 months ago674 commits
| 1 | import { client } from "../client"; |
| 2 | import type { ExamResult } from "../client"; |
| 3 | |
| 4 | export type PostExamResultBody = { |
| 5 | mark: number; |
| 6 | user_id: string; |
| 7 | }; |
| 8 | |
| 9 | export function postExamResult( |
| 10 | examId: string, |
| 11 | body: PostExamResultBody, |
| 12 | ): Promise<ExamResult> { |
| 13 | return client<ExamResult>(`/exams/${examId}/results`, { |
| 14 | method: "POST", |
| 15 | body, |
| 16 | }); |
| 17 | } |