This commit is contained in:
parent
deb43031a3
commit
165b39ded7
1 changed files with 1 additions and 1 deletions
|
@ -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));
|
||||
|
|
Loading…
Reference in a new issue