import { client } from "../client"; import type { Subject } from "../client"; export type PostCourseSubjectBody = { name: string; description?: string | null; }; export function postCourseSubject(courseId: string, body: PostCourseSubjectBody): Promise { return client(`/courses/${courseId}/subjects`, { method: "POST", body }); }