diff --git a/data/uploads/books/slone/FestGehalten_web.png b/data/uploads/books/slone/FestGehalten_web.png new file mode 100644 index 0000000..5e9d72e Binary files /dev/null and b/data/uploads/books/slone/FestGehalten_web.png differ diff --git a/data/uploads/books/slone/Zirkel_web.png b/data/uploads/books/slone/Zirkel_web.png new file mode 100644 index 0000000..c120c8d Binary files /dev/null and b/data/uploads/books/slone/Zirkel_web.png differ diff --git a/data/uploads/books/slone/ausgeliefert.png b/data/uploads/books/slone/ausgeliefert.png new file mode 100644 index 0000000..c2cc0c5 Binary files /dev/null and b/data/uploads/books/slone/ausgeliefert.png differ diff --git a/data/uploads/books/slone/dreieck.png b/data/uploads/books/slone/dreieck.png new file mode 100644 index 0000000..86c8859 Binary files /dev/null and b/data/uploads/books/slone/dreieck.png differ diff --git a/data/uploads/books/slone/familienspiele.png b/data/uploads/books/slone/familienspiele.png new file mode 100644 index 0000000..7dc1f0b Binary files /dev/null and b/data/uploads/books/slone/familienspiele.png differ diff --git a/data/uploads/books/slone/festgewickelt.png b/data/uploads/books/slone/festgewickelt.png new file mode 100644 index 0000000..cd3dd37 Binary files /dev/null and b/data/uploads/books/slone/festgewickelt.png differ diff --git a/data/uploads/books/slone/geschwisterliebe.png b/data/uploads/books/slone/geschwisterliebe.png new file mode 100644 index 0000000..e62558e Binary files /dev/null and b/data/uploads/books/slone/geschwisterliebe.png differ diff --git a/data/uploads/books/slone/mutter.png b/data/uploads/books/slone/mutter.png new file mode 100644 index 0000000..d61314d Binary files /dev/null and b/data/uploads/books/slone/mutter.png differ diff --git a/data/uploads/books/slone/sabrina.png b/data/uploads/books/slone/sabrina.png new file mode 100644 index 0000000..ea77198 Binary files /dev/null and b/data/uploads/books/slone/sabrina.png differ diff --git a/data/uploads/books/slone/zweifrauen.png b/data/uploads/books/slone/zweifrauen.png new file mode 100644 index 0000000..6d75b4c Binary files /dev/null and b/data/uploads/books/slone/zweifrauen.png differ diff --git a/data/uploads/profiles/slone/photo.jpg b/data/uploads/profiles/slone/photo.jpg new file mode 100644 index 0000000..41c38fd Binary files /dev/null and b/data/uploads/profiles/slone/photo.jpg differ diff --git a/data/uploads/profiles/slone/photo2.jpg b/data/uploads/profiles/slone/photo2.jpg new file mode 100644 index 0000000..de63163 Binary files /dev/null and b/data/uploads/profiles/slone/photo2.jpg differ diff --git a/data/uploads/profiles/slone/photo3.jpg b/data/uploads/profiles/slone/photo3.jpg new file mode 100644 index 0000000..7b1b3f2 Binary files /dev/null and b/data/uploads/profiles/slone/photo3.jpg differ diff --git a/server.ts b/server.ts index 703042b..521c354 100644 --- a/server.ts +++ b/server.ts @@ -28,6 +28,7 @@ const DATA_FILE = path.join(DATA_DIR, "database.json"); async function initDatabase(): Promise { try { await fs.mkdir(DATA_DIR, { recursive: true }); + await fs.mkdir(path.join(DATA_DIR, "uploads"), { recursive: true }); try { const existingData = await fs.readFile(DATA_FILE, "utf-8"); const parsed = JSON.parse(existingData) as AuthorData; @@ -205,6 +206,9 @@ Die Synopsis soll neugierig machen, stark die visuelle Stimmung rüberbringen un // Configure Vite middleware or static serve async function startServer() { + // Serve the dynamic uploads directory statically + app.use("/uploads", express.static(path.join(process.cwd(), "data", "uploads"))); + if (process.env.NODE_ENV !== "production") { const { createServer: createViteServer } = await import("vite"); const vite = await createViteServer({