diff --git a/frontend/src/controllers/teacher-invitations.ts b/frontend/src/controllers/teacher-invitations.ts index 7750dea5..b296e771 100644 --- a/frontend/src/controllers/teacher-invitations.ts +++ b/frontend/src/controllers/teacher-invitations.ts @@ -11,10 +11,11 @@ export interface TeacherInvitationResponse { export class TeacherInvitationController extends BaseController { constructor() { - super("teachers/invitations"); + super("teacher/invitations"); } - async getAll(username: string, sent: boolean): Promise { + async getAll(username: string, s: boolean): Promise { + const sent = s.toString(); return this.get(`/${username}`, { sent }); }