From 54c6336e224505c89df950435f6b00a51e4e1d6d Mon Sep 17 00:00:00 2001 From: ducoterra Date: Sat, 25 Apr 2020 17:07:45 -0400 Subject: [PATCH] proper slash handling in button.js --- ui/static/ui/button.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/static/ui/button.js b/ui/static/ui/button.js index af40ead..bbfc0e9 100644 --- a/ui/static/ui/button.js +++ b/ui/static/ui/button.js @@ -6,7 +6,7 @@ const count = document.getElementById("COUNT"); button.addEventListener("click", event => { button.disabled = true; button.classList.add("is-loading"); - fetch('/button', { + fetch('/button/', { method: 'POST', headers: { 'Content-Type': 'application/json',