mirror of
https://gitlab.fdmci.hva.nl/technische-informatica-sm3/ti-projectten/rooziinuubii79.git
synced 2025-08-03 20:04:58 +00:00
Change fetch endpoint from /send-direction to /move
This commit is contained in:
@@ -7,7 +7,7 @@ document.querySelectorAll(".btn").forEach(button => {
|
|||||||
const direction = event.target.value;
|
const direction = event.target.value;
|
||||||
|
|
||||||
// Verstuur de richting naar de server met fetch
|
// Verstuur de richting naar de server met fetch
|
||||||
fetch("/send-direction", {
|
fetch("/move", {
|
||||||
method: "POST",
|
method: "POST",
|
||||||
headers: {
|
headers: {
|
||||||
"Content-Type": "application/json"
|
"Content-Type": "application/json"
|
||||||
|
Reference in New Issue
Block a user