forge
Explore
Log in

Don't you dare go Hollow

hezarfen_frontend

Clone
★ 0

0 watching0 forksTypeScript5.5 MiBd962efeBurak Boduroğlu4 months ago146 commits

postCourseSession.ts13 lines, 427 bytesHistoryRawDownload
1import { client } from "./client";
2import type { CourseSession } from "./types";
3
4export type PostCourseSessionBody = {
5 topic?: string | null;
6 teacher_id?: string | null;
7 starts_at: number;
8 ends_at?: number | null;
9};
10
11export function postCourseSession(courseId: string, body: PostCourseSessionBody): Promise<CourseSession> {
12 return client<CourseSession>(`/courses/${courseId}/sessions`, { method: "POST", body });
13}