hezarfen_frontend
Clone
https://git.tahinli.com/archive/hezarfen_frontend.git
0 watching0 forksTypeScript5.5 MiB0069847Burak Boduroğlu2 months ago552 commits
| 1 | import { client } from "../client"; |
| 2 | import type { CourseSession } from "../client"; |
| 3 | |
| 4 | export type PostCourseSessionBody = { |
| 5 | topic?: string | null; |
| 6 | teacher_id?: string | null; |
| 7 | starts_at: number; |
| 8 | ends_at?: number | null; |
| 9 | }; |
| 10 | |
| 11 | export function postCourseSession(courseId: string, body: PostCourseSessionBody): Promise<CourseSession> { |
| 12 | return client<CourseSession>(`/courses/${courseId}/sessions`, { method: "POST", body }); |
| 13 | } |