From b8d43014293191f289f285b7c070715f474edb81 Mon Sep 17 00:00:00 2001 From: djabsher Date: Sun, 30 Jul 2023 03:58:21 +0000 Subject: [PATCH] Update router for static media files --- Server/src/app.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Server/src/app.js b/Server/src/app.js index 12047b7..f547d7f 100644 --- a/Server/src/app.js +++ b/Server/src/app.js @@ -29,6 +29,8 @@ console.log(wwwFolder); app.use(express.static(wwwFolder)); +app.use('/media', express.static('/media')); + app.get('/*', function (req, res) { console.log(__dirname); console.log(req.originalUrl);