forge
Explore
Log in

Don't you dare go Hollow

hezarfen_frontend

Clone
★ 0

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

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