This commit is contained in:
parent
f02bb6b457
commit
deb43031a3
1 changed files with 1 additions and 1 deletions
|
@ -2,7 +2,7 @@ function handleClick(): void {
|
||||||
console.log("Der Button wurde geklickt!");
|
console.log("Der Button wurde geklickt!");
|
||||||
//alert("Hallo von TypeScript!");
|
//alert("Hallo von TypeScript!");
|
||||||
|
|
||||||
fetch("/api/command", { method: "POST" })
|
fetch("iching/api/command", { method: "POST" })
|
||||||
.then(res => res.text())
|
.then(res => res.text())
|
||||||
.then(text => console.log("Server sagt:", text))
|
.then(text => console.log("Server sagt:", text))
|
||||||
.catch(error => console.error("Fehler:", error));
|
.catch(error => console.error("Fehler:", error));
|
||||||
|
|
Loading…
Reference in a new issue