Client liest die Platzhalter auf dem CPL
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user