forge
Explore
Log in

Don't you dare go Hollow

hezarfen_frontend

Clone
★ 0

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

postHomeworkResult.ts12 lines, 379 bytesHistoryRawDownload
1import { client } from "../client";
2import type { HomeworkResult } from "../client";
3
4export type PostHomeworkResultBody = {
5 user: string;
6 status: string;
7 mark?: number | null;
8};
9
10export function postHomeworkResult(id: string, body: PostHomeworkResultBody): Promise<HomeworkResult> {
11 return client<HomeworkResult>(`/homework/${id}/results`, { method: "POST", body });
12}