From 27e08ee3c6fae6df2b61fbd1df896ea923c20061 Mon Sep 17 00:00:00 2001 From: Denis Ah-Kang Date: Mon, 5 Feb 2024 18:57:39 +0400 Subject: [PATCH] the local server no longer needs BASE_URI --- server.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server.js b/server.js index 44591ab..58599e0 100644 --- a/server.js +++ b/server.js @@ -147,7 +147,7 @@ app.get( response.body.pipe(createWriteStream(`${uploadPath}/${name}`)); }); - const baseUrl = `${req.protocol}://${req.get("host")}/${BASE_URI}`; + const baseUrl = `${req.protocol}://${req.get("host")}/`; const newPath = url.replace(baseRegex, `${uploadPath}/`); req.query.url = `${baseUrl}${newPath}${specURL.search}`; req.tmpDir = uploadPath;