hezarfen_frontend
Clone
https://git.tahinli.com/archive/hezarfen_frontend.git
0 watching0 forksTypeScript5.5 MiBd962efeBurak Boduroğlu4 months ago146 commits
| 1 | import { client } from "./client"; |
| 2 | import type { CourseSession } from "./types"; |
| 3 | |
| 4 | export type PatchSessionBody = { |
| 5 | topic?: string | null; |
| 6 | teacher_id?: string | null; |
| 7 | starts_at?: number | null; |
| 8 | ends_at?: number | null; |
| 9 | }; |
| 10 | |
| 11 | export function patchSessionById(id: string, body: PatchSessionBody): Promise<CourseSession> { |
| 12 | return client<CourseSession>(`/sessions/${id}`, { method: "PATCH", body }); |
| 13 | } |