Update download route and related config paths

Changed BASE_POINT in .env.example and the download route in download.js to use '/api/v2/download/' instead of '/download/'. Updated .gitignore to exclude '/data/game' directory.
This commit is contained in:
Gilles Lazures 2026-01-25 22:12:42 +01:00
parent 7aa2b71aea
commit 453fed917d
3 changed files with 4 additions and 3 deletions

View File

@ -1,3 +1,3 @@
WEB_PORT=8535
IS_PROD=FALSE
BASE_POINT=http://localhost:8535/download/
BASE_POINT=http://localhost:8535/api/v2/download/

1
.gitignore vendored
View File

@ -132,3 +132,4 @@ dist
#logs
logs
/data/game

View File

@ -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("/download/", ""))
const fileRequest = await gameFilesService.getFile(req.baseUrl.replace("/api/v2/download/", ""))
return res.status(fileRequest.code).sendFile(fileRequest.path)
})