forge
Explore
Log in

Don't you dare go Hollow

hezarfen_frontend

Clone
★ 0

0 watching0 forksTypeScript5.5 MiBdcf123aBurak Boduroğlu2 months ago674 commits

postCourseMember.ts13 lines, 471 bytesHistoryRawDownload
1import { client } from "../client";
2import type { CourseMembership } from "../client";
3
4/**
5 * Only students, and only into a `study` (etüt) or `club` (kulüp): a regular
6 * ders has no school-wide roster — its students come from the şube.
7 */
8export function postCourseMember(courseId: string, userId: string): Promise<CourseMembership> {
9 return client<CourseMembership>(`/courses/${courseId}/members`, {
10 method: "POST",
11 body: { user_id: userId },
12 });
13}