Client liest die Platzhalter auf dem CPL

This commit is contained in:
ISA
2024-09-24 12:20:14 +02:00
parent 57ddf41f3c
commit 817495cd25
3 changed files with 62 additions and 21 deletions

View File

@@ -9,7 +9,7 @@ function Header() {
useEffect(() => {
// API-Aufruf, um die Daten vom Server zu holen
fetch("http://localhost:3000/api/server", { mode: "cors" })
fetch("http://localhost:3000/api/server?path=main.js", { mode: "cors" })
.then((response) => {
if (!response.ok) {
throw new Error("Fehler beim Abrufen der Daten");