Update to new voting API
This commit is contained in:
parent
ac0b753c53
commit
e1cd1f74d6
1 changed files with 2 additions and 2 deletions
|
@ -1,5 +1,5 @@
|
||||||
function refresh(slug) {
|
function refresh(slug) {
|
||||||
fetch('https://voting.redstrate.com/votes/view/' + slug)
|
fetch('https://voting.redstrate.com/votes/' + slug)
|
||||||
.then(function(response) {
|
.then(function(response) {
|
||||||
return response.json();
|
return response.json();
|
||||||
})
|
})
|
||||||
|
@ -9,7 +9,7 @@ function refresh(slug) {
|
||||||
}
|
}
|
||||||
|
|
||||||
function addVote(slug) {
|
function addVote(slug) {
|
||||||
const request = new Request("https://voting.redstrate.com/votes/submit/" + slug, {
|
const request = new Request("https://voting.redstrate.com/votes/" + slug, {
|
||||||
method: "POST"
|
method: "POST"
|
||||||
});
|
});
|
||||||
fetch(request)
|
fetch(request)
|
||||||
|
|
Loading…
Add table
Reference in a new issue