hezarfen_frontend
Clone
https://git.tahinli.com/Hezarfen/hezarfen_frontend.git
0 watching0 forksTypeScript5.5 MiB5fcd955Burak Boduroğlu2 months ago730 commits
| 1 | import { client } from "../client"; |
| 2 | import type { ExamWeightEntry } from "../client"; |
| 3 | import type { InstanceExamWeights } from "./getInstanceExamWeights"; |
| 4 | |
| 5 | // Sets one kind's weight and takes the whole map own: kinds without a row |
| 6 | // then weigh 1 here instead of following the offering. |
| 7 | export function patchInstanceExamWeight(id: string, body: ExamWeightEntry): Promise<InstanceExamWeights> { |
| 8 | return client<InstanceExamWeights>(`/instances/${id}/exam-weights`, { method: "PATCH", body }); |
| 9 | } |