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 { Enrollment } from "../client"; |
| 3 | |
| 4 | export function postCourseEnrollment( |
| 5 | courseId: string, |
| 6 | userId: string, |
| 7 | ): Promise<Enrollment> { |
| 8 | return client<Enrollment>(`/courses/${courseId}/enrollments`, { |
| 9 | method: "POST", |
| 10 | body: { user_id: userId }, |
| 11 | }); |
| 12 | } |