feat: PUT voor frontend controller classes toegevoegd

This commit is contained in:
Adriaan Jacquet 2025-04-07 17:37:23 +02:00
parent 6a1f5ac4e8
commit aea0c3c7c9

View file

@ -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 });
}