From 953c06212dee75ff2874ff3d4cb7500f4d920390 Mon Sep 17 00:00:00 2001 From: al8763be Date: Mon, 18 Mar 2024 00:22:32 +0100 Subject: [PATCH] API Changes --- frontend/src/API/API.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/frontend/src/API/API.ts b/frontend/src/API/API.ts index ac0f531..7a1ccd0 100644 --- a/frontend/src/API/API.ts +++ b/frontend/src/API/API.ts @@ -29,6 +29,11 @@ interface API { project: NewProject, token: string, ): Promise>; + /** Gets all the projects of a user*/ + getUserProjects( + username: string, + token: string, + ): Promise>; /** Submit a weekly report */ submitWeeklyReport( project: NewWeeklyReport, @@ -41,11 +46,6 @@ interface API { week: string, token: string, ): Promise>; - /** Gets all the projects of a user*/ - getUserProjects( - username: string, - token: string, - ): Promise>; } // Export an instance of the API