diff --git a/frontend/src/controllers/students.ts b/frontend/src/controllers/students.ts index f74f02da..82fb2831 100644 --- a/frontend/src/controllers/students.ts +++ b/frontend/src/controllers/students.ts @@ -70,7 +70,7 @@ export class StudentController extends BaseController { } async createJoinRequest(username: string, classId: string): Promise { - return this.post(`/${username}/joinRequests}`, classId); + return this.post(`/${username}/joinRequests}`, { classId }); } async deleteJoinRequest(username: string, classId: string): Promise {