From 1c07d9c6c83bc6d9e8d6b9a97c28352ae1776539 Mon Sep 17 00:00:00 2001 From: Gabriellvl Date: Fri, 18 Apr 2025 15:51:34 +0200 Subject: [PATCH] fix: route name schrijffout --- frontend/src/controllers/teacher-invitations.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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 }); }