diff --git a/frontend/src/API/API.ts b/frontend/src/API/API.ts index d6a4b23..6a508b5 100644 --- a/frontend/src/API/API.ts +++ b/frontend/src/API/API.ts @@ -280,13 +280,12 @@ export const api: API = { token: string, ): Promise> { try { - const response = await fetch("/api/getWeeklyReportsUser", { + const response = await fetch(`/api/getWeeklyReportsUser?username=${username}&projectName=${projectName}`, { method: "GET", headers: { "Content-Type": "application/json", Authorization: "Bearer " + token, }, - body: JSON.stringify({ username: username, projectName: projectName}), }); if (!response.ok) {