hezarfen_frontend
Clone
https://git.tahinli.com/Hezarfen/hezarfen_frontend.git
0 watching0 forksTypeScript5.5 MiBdcf123aBurak Boduroğlu2 months ago674 commits
| 1 | import { client } from "../client"; |
| 2 | import type { School, SchoolStatus } from "../client"; |
| 3 | |
| 4 | export type UpdateSchoolBody = { |
| 5 | name?: string; |
| 6 | status?: SchoolStatus; |
| 7 | }; |
| 8 | |
| 9 | export function patchSchoolBySlug(slug: string, body: UpdateSchoolBody): Promise<School> { |
| 10 | return client<School>(`/schools/${encodeURIComponent(slug)}`, { method: "PATCH", body }); |
| 11 | } |