From d7aaf27d538eeb392d2c4d07bc02d355c4a40311 Mon Sep 17 00:00:00 2001 From: Marc Wieland Date: Fri, 25 Apr 2025 15:25:25 +0200 Subject: [PATCH] New Server Version --- index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index 931c8fd..19fc0a0 100644 --- a/index.js +++ b/index.js @@ -22,7 +22,7 @@ app.use(cors({ })); app.use(express.json()); -app.use('uploads/', express.static('uploads')); +app.use('/uploads', express.static(path.join(__dirname, 'uploads'))); // PostgreSQL Verbindung aufbauen @@ -209,7 +209,7 @@ app.get("/api/users", async (req, res) => { } }); -// Benutzer lÃloeschen +// Benutzer l�loeschen app.delete("/api/users/:id", async (req, res) => { const { id } = req.params;