hezarfen_frontend
Clone
https://git.tahinli.com/archive/hezarfen_frontend.git
0 watching0 forksTypeScript5.5 MiBdcf123aBurak Boduroğlu2 months ago674 commits
| 1 | import { client } from "../client"; |
| 2 | import type { Term } from "../client"; |
| 3 | |
| 4 | export type PostTermBody = { |
| 5 | name: string; |
| 6 | /** The academic year the dönem sits in; an archived year refuses it (409). */ |
| 7 | year: string; |
| 8 | starts_at: number; |
| 9 | ends_at: number; |
| 10 | }; |
| 11 | |
| 12 | export function postTerm(body: PostTermBody): Promise<Term> { |
| 13 | return client<Term>("/terms", { method: "POST", body }); |
| 14 | } |