hezarfen_frontend
Clone
https://git.tahinli.com/archive/hezarfen_frontend.git
0 watching0 forksTypeScript5.5 MiB4e0a329Burak Boduroğlu2 months ago537 commits
| 1 | import { client } from "../client"; |
| 2 | import type { HomeworkResult } from "../client"; |
| 3 | |
| 4 | export type PostHomeworkResultBody = { |
| 5 | user: string; |
| 6 | status: string; |
| 7 | mark?: number | null; |
| 8 | }; |
| 9 | |
| 10 | export function postHomeworkResult(id: string, body: PostHomeworkResultBody): Promise<HomeworkResult> { |
| 11 | return client<HomeworkResult>(`/homework/${id}/results`, { method: "POST", body }); |
| 12 | } |