forge
Explore
Log in

Don't you dare go Hollow

hezarfen_frontend

Clone
★ 0

0 watching0 forksTypeScript5.5 MiB078b459Burak Boduroğlu2 months ago671 commits

getClassBlueprintByGrade.ts8 lines, 440 bytesHistoryRawDownload
1import { client } from "../client";
2import 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.
6export function getClassBlueprintByGrade(grade: string, signal?: AbortSignal): Promise<ClassBlueprint> {
7 return client<ClassBlueprint>(`/classes/blueprints/${encodeURIComponent(grade)}`, { signal });
8}