forge
Explore
Log in

Don't you dare go Hollow

hezarfen_frontend

Clone
★ 0

0 watching0 forksTypeScript5.5 MiB0069847Burak Boduroğlu2 months ago552 commits

postCourseHomework.ts14 lines, 433 bytesHistoryRawDownload
1import { client } from "../client";
2import type { Homework } from "../client";
3
4export type PostCourseHomeworkBody = {
5 title: string;
6 description?: string | null;
7 subject_id: string;
8 due_at: number;
9 assigned?: string[] | null;
10};
11
12export function postCourseHomework(courseId: string, body: PostCourseHomeworkBody): Promise<Homework> {
13 return client<Homework>(`/courses/${courseId}/homework`, { method: "POST", body });
14}