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