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