hezarfen_frontend
Clone
https://git.tahinli.com/archive/hezarfen_frontend.git
0 watching0 forksTypeScript5.5 MiB078b459Burak Boduroğlu2 months ago671 commits
| 1 | import { client } from "../client"; |
| 2 | import type { ClassBlueprint } from "../client"; |
| 3 | |
| 4 | // The grade label is the record key and is free text, so it must be encoded — |
| 5 | // a grade like "9/A" would otherwise read as a second path segment. |
| 6 | export function getClassBlueprintByGrade(grade: string, signal?: AbortSignal): Promise<ClassBlueprint> { |
| 7 | return client<ClassBlueprint>(`/classes/blueprints/${encodeURIComponent(grade)}`, { signal }); |
| 8 | } |