diff --git a/frontend/event.ts b/frontend/event.ts index 364e501..321c88b 100644 --- a/frontend/event.ts +++ b/frontend/event.ts @@ -2,7 +2,7 @@ function handleClick(): void { console.log("Der Button wurde geklickt!"); //alert("Hallo von TypeScript!"); - fetch("iching/api/command", { method: "POST" }) + fetch("/iching/api/command", { method: "POST" }) .then(res => res.text()) .then(text => console.log("Server sagt:", text)) .catch(error => console.error("Fehler:", error));