fix: juiste input wordt doorgegeven

This commit is contained in:
laurejablonski 2025-04-05 17:25:03 +02:00
parent b25901cbb7
commit 6244093584

View file

@ -70,7 +70,7 @@ export class StudentController extends BaseController {
}
async createJoinRequest(username: string, classId: string): Promise<JoinRequestResponse> {
return this.post<JoinRequestResponse>(`/${username}/joinRequests}`, classId);
return this.post<JoinRequestResponse>(`/${username}/joinRequests}`, { classId });
}
async deleteJoinRequest(username: string, classId: string): Promise<JoinRequestResponse> {