mirror of
https://github.com/BeamMP/BeamMP-Website.git
synced 2025-07-01 23:35:25 +00:00
Fixed 301 redirect issue
This commit is contained in:
parent
696376662f
commit
8dcd6d723f
@ -24,11 +24,11 @@ function mainRoutes(router) {
|
||||
router.get('/builds/launcher', function(req, res) {
|
||||
if (req.query.download == 'true') {
|
||||
//res.download('https://backend.beammp.com/builds/launcher?download=true')
|
||||
const file = `${__dirname}/static/builds/launcher/launcher.exe`;
|
||||
const file = `${__dirname}/builds/launcher/launcher.exe`;
|
||||
res.download(file); // Set disposition and send it.
|
||||
} else if (req.query.version == 'true') {
|
||||
//res.redirect('https://backend.beammp.com/builds/launcher?version=true')
|
||||
const file = `${__dirname}/static/builds/launcher/version.json`;
|
||||
const file = `${__dirname}/builds/launcher/version.json`;
|
||||
res.download(file); // Set disposition and send it.
|
||||
} else {
|
||||
//res.sendStatus(403)
|
||||
|
Loading…
x
Reference in New Issue
Block a user