forge
Explore
Log in

Don't you dare go Hollow

hezarfen_frontend

Clone
★ 0

0 watching0 forksTypeScript5.5 MiBdcf123aBurak Boduroğlu2 months ago674 commits

postCourseSubject.ts11 lines, 356 bytesHistoryRawDownload
1import { client } from "../client";
2import type { Subject } from "../client";
3
4export type PostCourseSubjectBody = {
5 name: string;
6 description?: string | null;
7};
8
9export function postCourseSubject(courseId: string, body: PostCourseSubjectBody): Promise<Subject> {
10 return client<Subject>(`/courses/${courseId}/subjects`, { method: "POST", body });
11}