From 3d8158e78608d3cc8ca59512b5ba0fe140ff9252 Mon Sep 17 00:00:00 2001 From: Marc Wieland Date: Sat, 24 May 2025 19:56:53 +0200 Subject: [PATCH] Added carrousell integration --- index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index 1591b8d..c7464fb 100644 --- a/index.js +++ b/index.js @@ -787,16 +787,16 @@ const storage = multer.diskStorage({ const upload = multer({ storage }); -router.post("/api/teams/:id/carousel-upload", upload.single("image"), (req, res) => { +app.post("/api/teams/:id/carousel-upload", upload.single("image"), (req, res) => { if (!req.file) return res.status(400).json({ error: "Keine Datei hochgeladen" }); - // z. B. /uploads/carousel/171654543-name.jpg const filePath = `/uploads/carousel/${req.file.filename}`; res.json({ path: filePath }); }); + // Server starten app.listen(port, () => { const nets = os.networkInterfaces();