Jag avskyr denna handlern
This commit is contained in:
parent
7d30165465
commit
af5813681d
1 changed files with 1 additions and 2 deletions
|
@ -280,13 +280,12 @@ export const api: API = {
|
|||
token: string,
|
||||
): Promise<APIResponse<WeeklyReport[]>> {
|
||||
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) {
|
||||
|
|
Loading…
Reference in a new issue