const response = await fetch(`http://localhost:8000/users/${userId}/cards`, {
method: "POST",
headers: {
"Content-Type": "application/json",
"Authorization": `Bearer ${token}`,
},
mode: "cors",
body: JSON.stringify(requestBody),
});
const response = await fetch(`http://localhost:8000/users/${userId}/cards`, {
method: "POST",
headers: {
"Content-Type": "application/json",
"Authorization": `Bearer ${token}`,
},
mode: "cors",
body: JSON.stringify(requestBody),
});