generated from azures04/Base-REST-API
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:
@@ -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)
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user