diff --git a/frontend/src/API/API.ts b/frontend/src/API/API.ts index 7920e0e..d898206 100644 --- a/frontend/src/API/API.ts +++ b/frontend/src/API/API.ts @@ -265,7 +265,7 @@ export const api: API = { ): Promise> { try { const response = await fetch("/api/addUserToProject", { - method: "POST", + method: "PUT", headers: { "Content-Type": "application/json", Authorization: "Bearer " + token,