From e1cd1f74d638fe769017697337bbed7ea6fc2ae1 Mon Sep 17 00:00:00 2001 From: Joshua Goins Date: Sat, 18 Jan 2025 14:28:12 -0500 Subject: [PATCH] Update to new voting API --- themes/red/assets/js/voting.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/themes/red/assets/js/voting.js b/themes/red/assets/js/voting.js index 61260c0..c91599d 100644 --- a/themes/red/assets/js/voting.js +++ b/themes/red/assets/js/voting.js @@ -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)