fix: student join req by class route + teacher return post put delete + status

This commit is contained in:
Gabriellvl 2025-04-01 14:24:06 +02:00
parent c0995d3933
commit 912369f87e
9 changed files with 106 additions and 47 deletions

View file

@ -45,6 +45,10 @@ export class StudentController extends BaseController {
return this.get<{ requests: any[] }>(`/${username}/joinRequests`);
}
getJoinRequest(username: string, classId: string) {
return this.get<{ request: any[] }>(`/${username}/joinRequests/${classId}`);
}
createJoinRequest(username: string, classId: string) {
return this.post(`/${username}/joinRequests}`, classId);
}