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 { KarneReport } from "../client"; |
| 3 | |
| 4 | /** |
| 5 | * The caller's karne for one dönem. Omit `term` for the newest one. An |
| 6 | * archived dönem serves the snapshot the school froze when it closed. |
| 7 | */ |
| 8 | export function getMyKarne(term?: string, signal?: AbortSignal): Promise<KarneReport> { |
| 9 | const query = term ? `?term=${encodeURIComponent(term)}` : ""; |
| 10 | return client<KarneReport>(`/marks/karne${query}`, { signal }); |
| 11 | } |