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 { CourseNote } from "../client"; |
| 3 | |
| 4 | export type PostCourseNoteBody = { |
| 5 | course: string; |
| 6 | title: string; |
| 7 | content?: string | null; |
| 8 | }; |
| 9 | |
| 10 | export function postCourseNote(body: PostCourseNoteBody): Promise<CourseNote> { |
| 11 | return client<CourseNote>("/course-notes", { method: "POST", body }); |
| 12 | } |