hezarfen_frontend
Clone
https://git.tahinli.com/archive/hezarfen_frontend.git
0 watching0 forksTypeScript5.5 MiB0069847Burak Boduroğlu2 months ago552 commits
| 1 | import { client } from "../client"; |
| 2 | import type { ClassGroup } from "../client"; |
| 3 | |
| 4 | export type CreateClassBody = { name: string; grade?: string; term_id?: string; teacher_id?: string }; |
| 5 | |
| 6 | export function postClass(body: CreateClassBody): Promise<ClassGroup> { |
| 7 | return client<ClassGroup>("/classes", { method: "POST", body }); |
| 8 | } |