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 | |
| 3 | /** |
| 4 | * Detaches an instance from a class. The second segment is the **instance id** |
| 5 | * (`getClassInstances`), not a course id — two sections teaching the same |
| 6 | * course hold two instances. Everything the class taught under it goes with |
| 7 | * it: exams, homework, sessions, roll call, and the whole roster, hand-placed |
| 8 | * rows included (an enrollment cannot outlive its instance). |
| 9 | */ |
| 10 | export function deleteClassInstance(classId: string, instanceId: string): Promise<void> { |
| 11 | return client<void>(`/classes/${classId}/instances/${instanceId}`, { method: "DELETE" }); |
| 12 | } |