From 38dfccbd2840d374441a9b59d11629535ec6a2da Mon Sep 17 00:00:00 2001 From: "ishak jmilou.ishak" Date: Mon, 4 Nov 2024 12:17:17 +0100 Subject: [PATCH] Change fetch endpoint from /send-direction to /move --- src/Python/flask/web/static/script.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Python/flask/web/static/script.js b/src/Python/flask/web/static/script.js index 197750a..c6e8451 100644 --- a/src/Python/flask/web/static/script.js +++ b/src/Python/flask/web/static/script.js @@ -7,7 +7,7 @@ document.querySelectorAll(".btn").forEach(button => { const direction = event.target.value; // Verstuur de richting naar de server met fetch - fetch("/send-direction", { + fetch("/move", { method: "POST", headers: { "Content-Type": "application/json"