fix: student join req by class route + teacher return post put delete + status
This commit is contained in:
parent
c0995d3933
commit
912369f87e
9 changed files with 106 additions and 47 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue