From deb43031a303f1083b69b1d97db23f93fe0071d6 Mon Sep 17 00:00:00 2001 From: Christopher Hase Date: Mon, 14 Apr 2025 11:54:27 +0200 Subject: [PATCH] add http-server part 8.3.3 --- frontend/event.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/event.ts b/frontend/event.ts index 3fa0de3..364e501 100644 --- a/frontend/event.ts +++ b/frontend/event.ts @@ -2,7 +2,7 @@ function handleClick(): void { console.log("Der Button wurde geklickt!"); //alert("Hallo von TypeScript!"); - fetch("/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));