feat: PUT voor frontend controller groups toegevoegd
This commit is contained in:
parent
048bba5c7e
commit
6a1f5ac4e8
1 changed files with 4 additions and 0 deletions
|
@ -32,6 +32,10 @@ export class GroupController extends BaseController {
|
|||
return this.delete<GroupResponse>(`/${num}`);
|
||||
}
|
||||
|
||||
async updateGroup(num: number, data: Partial<GroupDTO>): Promise<GroupResponse> {
|
||||
return this.put<GroupResponse>(`/${num}`, data);
|
||||
}
|
||||
|
||||
async getSubmissions(groupNumber: number, full = true): Promise<SubmissionsResponse> {
|
||||
return this.get<SubmissionsResponse>(`/${groupNumber}/submissions`, { full });
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue