diff --git a/frontend/event.ts b/frontend/event.ts index e776c78..21b0409 100644 --- a/frontend/event.ts +++ b/frontend/event.ts @@ -3,9 +3,13 @@ function handleClick(): void { console.log("Der Button wurde geklickt!"); alert("Hallo von TypeScript!"); - fetch("/api/command", { method: "POST" }) + fetch("http://localhost:8090/api/command", { method: "POST" }) .then(res => res.text()) .then(text => console.log("Server sagt:", text)); + + /*fetch("/api/command", { method: "POST" }) + .then(res => res.text()) + .then(text => console.log("Server sagt:", text));*/ /*fetch("https://192-168-197-2.c-one-infra.de/api/command", { method: "POST" }) .then(res => res.text())