hezarfen_frontend
Clone
https://git.tahinli.com/archive/hezarfen_frontend.git
0 watching0 forksTypeScript5.5 MiB7122d71Burak Boduroğlu4 months ago419 commits
| 1 | import { client } from "../client"; |
| 2 | import type { Course, CourseKind } from "../client"; |
| 3 | |
| 4 | export type PostCourseBody = { |
| 5 | title: string; |
| 6 | description?: string | null; |
| 7 | kind?: CourseKind | null; |
| 8 | term_id?: string | null; |
| 9 | capacity?: number | null; |
| 10 | }; |
| 11 | |
| 12 | export function postCourse(body: PostCourseBody): Promise<Course> { |
| 13 | return client<Course>("/courses", { method: "POST", body }); |
| 14 | } |