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 { AcademicYear } from "../client"; |
| 3 | |
| 4 | /** |
| 5 | * Freezes the year as past structure: no new şube, dönem or exam inside it, |
| 6 | * and no edit or delete. Idempotent, and there is no unarchive route. |
| 7 | */ |
| 8 | export function postAcademicYearArchive(id: string): Promise<AcademicYear> { |
| 9 | return client<AcademicYear>(`/academic-years/${id}/archive`, { method: "POST" }); |
| 10 | } |