hezarfen_frontend
Clone
https://git.tahinli.com/archive/hezarfen_frontend.git
0 watching0 forksTypeScript5.5 MiB0069847Burak Boduroğlu2 months ago552 commits
| 1 | import { client } from "../client"; |
| 2 | import type { Homework } from "../client"; |
| 3 | |
| 4 | export type PatchHomeworkBody = { |
| 5 | title?: string; |
| 6 | description?: string | null; |
| 7 | due_at?: number; |
| 8 | subject_id?: string; |
| 9 | assigned?: string[] | null; |
| 10 | }; |
| 11 | |
| 12 | export function patchHomeworkById(id: string, body: PatchHomeworkBody): Promise<Homework> { |
| 13 | return client<Homework>(`/homework/${id}`, { method: "PATCH", body }); |
| 14 | } |