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 { AssignmentOutcome } from "./types"; |
| 3 | |
| 4 | export function postPlanAssignment( |
| 5 | planId: string, |
| 6 | body: { student_ids: string[] }, |
| 7 | ): Promise<AssignmentOutcome[]> { |
| 8 | return client<AssignmentOutcome[]>( |
| 9 | `/payments/plans/${encodeURIComponent(planId)}/assignments`, |
| 10 | { method: "POST", body }, |
| 11 | ); |
| 12 | } |