diff --git a/routes/api/v2/download.js b/routes/api/v2/download.js index d56b63a..3330e76 100644 --- a/routes/api/v2/download.js +++ b/routes/api/v2/download.js @@ -3,7 +3,7 @@ const router = express.Router() const gameFilesService = require("../../../services/gameDataService") router.get(/.*/, async (req, res) => { - const fileRequest = await gameFilesService.getFile(req.baseUrl.replace("/api/v2/download/", "")) + const fileRequest = await gameFilesService.getFile(req.originalUrl.replace("/api/v2/download/", "")) return res.status(fileRequest.code).sendFile(fileRequest.path) })