This commit is contained in:
parent
3c6d238ab8
commit
acdeb23c92
1 changed files with 5 additions and 1 deletions
|
@ -3,10 +3,14 @@ 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())
|
||||
.then(text => console.log("Server sagt:", text)); */
|
||||
|
|
Loading…
Reference in a new issue