Change fetch endpoint from /send-direction to /move

This commit is contained in:
ishak jmilou.ishak
2024-11-04 12:17:17 +01:00
parent 85d54f8422
commit 38dfccbd28

View File

@@ -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"