hezarfen_frontend
Clone
https://git.tahinli.com/archive/hezarfen_frontend.git
0 watching0 forksTypeScript5.5 MiB5fcd955Burak Boduroğlu2 months ago730 commits
| 1 | import { client } from "../client"; |
| 2 | import type { School } from "../client"; |
| 3 | |
| 4 | export type CreateSchoolBody = { |
| 5 | name: string; |
| 6 | admin_username: string; |
| 7 | admin_password: string; |
| 8 | /** Omitted sells the whole catalog. */ |
| 9 | modules?: string[]; |
| 10 | }; |
| 11 | |
| 12 | export function postSchool(body: CreateSchoolBody): Promise<School> { |
| 13 | return client<School>("/schools", { method: "POST", body }); |
| 14 | } |