Skip to content
This repository has been archived by the owner on Dec 23, 2024. It is now read-only.

Commit

Permalink
Remove demo page (#170)
Browse files Browse the repository at this point in the history
Temporary redirect is included. Will be removed at a later point.
  • Loading branch information
GingerAdonis authored Mar 27, 2024
1 parent f38eaae commit 2fcd0bf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 38 deletions.
14 changes: 3 additions & 11 deletions src/http/routes/downloads.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,23 +45,15 @@ export class DownloadsRouter {
});

router.get('/demo', (req, res) => {
res.render('downloads/demo', {
...HTTPServer.instance.application.locals,
req,
page: {
title: 'Download RCT2 Demo',
description: 'By downloading the free RollerCoaster Tycoon 2 TTP Demo you can play the full OpenRCT2 game.',
path: HTTPServer.getExpressPath(req.baseUrl, req.path),
},
});
res.redirect('https://files.xoti.net/rollercoaster-tycoon-2/demos/rct2-triple-thrill-pack-demo/');
});

router.get('/demo/zip', (req, res) => {
res.redirect('https://openrct2.org/files/demo/RollerCoasterTycoon2TTP_EN.zip');
res.redirect('https://files.xoti.net/rollercoaster-tycoon-2/demos/rct2-triple-thrill-pack-demo/');
});

router.get('/demo/exe', (req, res) => {
res.redirect('https://openrct2.org/files/demo/RollerCoasterTycoon2TTP_EN.exe');
res.redirect('https://files.xoti.net/rollercoaster-tycoon-2/demos/rct2-triple-thrill-pack-demo-executable/');
});

router.param('branch', (req, res, next, branch) => {
Expand Down
27 changes: 0 additions & 27 deletions views/downloads/demo.eta

This file was deleted.

0 comments on commit 2fcd0bf

Please sign in to comment.