add http-server part 8.3.3
Some checks are pending
ci / build (push) Waiting to run

This commit is contained in:
Christopher Hase 2025-04-14 11:54:27 +02:00
parent f02bb6b457
commit deb43031a3

View file

@ -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));