forge
Explore
Log in

Don't you dare go Hollow

hezarfen_frontend

Clone
★ 0

0 watching0 forksTypeScript5.5 MiB5fcd955Burak Boduroğlu2 months ago730 commits

postExamResult.ts17 lines, 355 bytesHistoryRawDownload
1import { client } from "../client";
2import type { ExamResult } from "../client";
3
4export type PostExamResultBody = {
5 mark: number;
6 user_id: string;
7};
8
9export function postExamResult(
10 examId: string,
11 body: PostExamResultBody,
12): Promise<ExamResult> {
13 return client<ExamResult>(`/exams/${examId}/results`, {
14 method: "POST",
15 body,
16 });
17}