forge
Explore
Log in

Don't you dare go Hollow

hezarfen_frontend

Clone
★ 0

0 watching0 forksTypeScript5.5 MiBd962efeBurak Boduroğlu4 months ago146 commits

postCourseEnrollment.ts12 lines, 305 bytesHistoryRawDownload
1import { client } from "./client";
2import type { Enrollment } from "./types";
3
4export 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}