Update to new voting API

This commit is contained in:
Joshua Goins 2025-01-18 14:28:12 -05:00
parent ac0b753c53
commit e1cd1f74d6

View file

@ -1,5 +1,5 @@
function refresh(slug) {
fetch('https://voting.redstrate.com/votes/view/' + slug)
fetch('https://voting.redstrate.com/votes/' + slug)
.then(function(response) {
return response.json();
})
@ -9,7 +9,7 @@ function refresh(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"
});
fetch(request)