hezarfen_frontend
Clone
https://git.tahinli.com/archive/hezarfen_frontend.git
0 watching0 forksTypeScript5.5 MiBc35a83aBurak Boduroğlu4 months ago440 commits
| 1 | import { client } from "../client"; |
| 2 | import type { Term } from "../client"; |
| 3 | |
| 4 | export type PatchTermBody = { |
| 5 | name?: string | null; |
| 6 | starts_at?: number | null; |
| 7 | ends_at?: number | null; |
| 8 | }; |
| 9 | |
| 10 | export function patchTermById(id: string, body: PatchTermBody): Promise<Term> { |
| 11 | return client<Term>(`/terms/${id}`, { method: "PATCH", body }); |
| 12 | } |