feat: PUT voor frontend controller classes toegevoegd
This commit is contained in:
parent
6a1f5ac4e8
commit
aea0c3c7c9
1 changed files with 4 additions and 0 deletions
|
@ -42,6 +42,10 @@ export class ClassController extends BaseController {
|
|||
return this.delete<ClassResponse>(`/${id}`);
|
||||
}
|
||||
|
||||
async updateClass(id: string, data: Partial<ClassDTO>): Promise<ClassResponse> {
|
||||
return this.put<ClassResponse>(`/${id}`, data);
|
||||
}
|
||||
|
||||
async getStudents(id: string, full = true): Promise<StudentsResponse> {
|
||||
return this.get<StudentsResponse>(`/${id}/students`, { full });
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue