Fix a bug with URL in user page v0.0.9
This commit is contained in:
parent
1f17d1a452
commit
341ac14839
@ -73,7 +73,7 @@ const loadUserTasks = () => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const getUserTasks = (userToken) => {
|
const getUserTasks = (userToken) => {
|
||||||
const res = fetch(`${localhostUrl}/users/me`, {
|
const res = fetch(`${url}/users/me`, {
|
||||||
headers: {Authorization: `Bearer ${userToken}`}
|
headers: {Authorization: `Bearer ${userToken}`}
|
||||||
});
|
});
|
||||||
|
|
||||||
@ -112,7 +112,7 @@ const updateTask = (userToken, taskTitle, taskDescription, completedStatus) => {
|
|||||||
|
|
||||||
console.log(body);
|
console.log(body);
|
||||||
console.log(taskDescription);
|
console.log(taskDescription);
|
||||||
const res = fetch(`${localhostUrl}/user/update-tasks`, {
|
const res = fetch(`${url}/user/update-tasks`, {
|
||||||
method: "PATCH",
|
method: "PATCH",
|
||||||
headers: {Authorization: `Bearer ${userToken}`, "Content-type": "application/json"},
|
headers: {Authorization: `Bearer ${userToken}`, "Content-type": "application/json"},
|
||||||
body: body
|
body: body
|
||||||
|
Loading…
Reference in New Issue
Block a user