fix: Up and downvote puttons
This commit is contained in:
parent
8a1b9c75c6
commit
43646493e1
@ -121,7 +121,13 @@ export function vote(entryID, up) {
|
||||
baseURL,
|
||||
);
|
||||
console.log(fetchURL); // TODO: remove
|
||||
fetch(fetchURL, {method: "post", mode: 'no-cors'});
|
||||
fetch(fetchURL, {
|
||||
method: "PUT", //mode: 'no-cors'
|
||||
headers: {
|
||||
'Content-Type': 'application/json',
|
||||
// Add other headers as needed
|
||||
},
|
||||
});
|
||||
/*.then(resp => resp.json()) // TODO: wait for backend
|
||||
.then((data) => {
|
||||
console.log(data.content); // TODO: remove*/
|
||||
|
Loading…
Reference in New Issue
Block a user