From ccf734072716b006da7e7028505cea5013752bf7 Mon Sep 17 00:00:00 2001 From: Mathieu Moran Date: Sun, 28 Dec 2025 00:50:14 -0500 Subject: [PATCH] Remove unused uploads directory creation code --- routes/categories.js | 5 ----- 1 file changed, 5 deletions(-) diff --git a/routes/categories.js b/routes/categories.js index fb6ce30..a6c52d0 100644 --- a/routes/categories.js +++ b/routes/categories.js @@ -369,11 +369,6 @@ router.delete("/:categoryId", verifyToken, async (req, res) => { } }); -// Ensure uploads directory exists -const uploadsDir = path.join(__dirname, '../uploads/'); -if (!fs.existsSync(uploadsDir)) { - fs.mkdirSync(uploadsDir, { recursive: true }); -} module.exports = router;