diff --git a/frontend/src/API/API.ts b/frontend/src/API/API.ts index cfd5b61..95a7e02 100644 --- a/frontend/src/API/API.ts +++ b/frontend/src/API/API.ts @@ -20,6 +20,10 @@ interface API { registerUser(user: NewUser): Promise>; /** Remove a user */ removeUser(username: string, token: string): Promise>; + /** Login */ + login(NewUser: NewUser): Promise>; + /** Renew the token */ + renewToken(token: string): Promise>; /** Create a project */ createProject( project: NewProject, @@ -30,15 +34,16 @@ interface API { project: NewWeeklyReport, token: string, ): Promise>; - /** Renew the token */ - renewToken(token: string): Promise>; + /**Gets a weekly report*/ + getWeeklyReport( + projectName: string, + token: string, + ): Promise>; /** Gets all the projects of a user*/ getUserProjects( username: string, token: string, ): Promise>; - /** Login */ - login(NewUser: NewUser): Promise>; } // Export an instance of the API