forge
Explore
Log in

Don't you dare go Hollow

hezarfen_frontend

Clone
★ 0

0 watching0 forksTypeScript5.5 MiBdcf123aBurak Boduroğlu2 months ago674 commits

postAcademicYearArchive.ts10 lines, 405 bytesHistoryRawDownload
1import { client } from "../client";
2import 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 */
8export function postAcademicYearArchive(id: string): Promise<AcademicYear> {
9 return client<AcademicYear>(`/academic-years/${id}/archive`, { method: "POST" });
10}