From 165b39ded7b2dc997a2a000247c089ca580a4870 Mon Sep 17 00:00:00 2001 From: Christopher Hase Date: Mon, 14 Apr 2025 11:58:03 +0200 Subject: [PATCH] add http-server part 8.3.4 --- frontend/event.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/event.ts b/frontend/event.ts index 364e501..321c88b 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("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));