From 397877cb545aaabe224cdebaf863d356d7102d68 Mon Sep 17 00:00:00 2001 From: Alvaro Rodriguez Gonzalez Date: Fri, 29 Apr 2022 09:15:22 +0200 Subject: [PATCH] Try to fix images --- restapi/server.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/restapi/server.ts b/restapi/server.ts index f856524..d4467d1 100644 --- a/restapi/server.ts +++ b/restapi/server.ts @@ -41,6 +41,9 @@ app.get(["/*.png", "/undefined"], function (req, res) { const a = path.join(__dirname, "public", "not-found.png"); const ipath = path.join(__dirname, "public", req.originalUrl); const savePath = path.resolve(ipath); + console.log(req.originalUrl); + console.log(ipath); + console.log(savePath); if (savePath.startsWith(__dirname + "\\public") && fs.existsSync(savePath)) { res.sendFile(savePath);