forge
Explore
Log in

Don't you dare go Hollow

hezarfen_frontend

Clone
★ 0

0 watching0 forksTypeScript5.5 MiB7122d71Burak Boduroğlu4 months ago419 commits

postCourse.ts14 lines, 389 bytesHistoryRawDownload
1import { client } from "../client";
2import type { Course, CourseKind } from "../client";
3
4export type PostCourseBody = {
5 title: string;
6 description?: string | null;
7 kind?: CourseKind | null;
8 term_id?: string | null;
9 capacity?: number | null;
10};
11
12export function postCourse(body: PostCourseBody): Promise<Course> {
13 return client<Course>("/courses", { method: "POST", body });
14}