Removed donate redirects

This commit is contained in:
mrfry 2020-11-03 12:25:30 +01:00
parent c90c879fc0
commit 962581c5e7
2 changed files with 1 additions and 13 deletions

View file

@ -30,17 +30,10 @@ const logger = require('../../utils/logger.js')
const auth = require('../../middlewares/auth.middleware.js') const auth = require('../../middlewares/auth.middleware.js')
// stuff gotten from server.js // stuff gotten from server.js
let donateURL = ''
let publicdirs = [] let publicdirs = []
let userDB let userDB
let nextdir = '' let nextdir = ''
try {
donateURL = utils.ReadFile('./data/donateURL')
} catch (e) {
logger.Log('Couldnt read donate URL file!', logger.GetColor('red'))
}
function GetApp() { function GetApp() {
app.use( app.use(
bodyParser.urlencoded({ bodyParser.urlencoded({
@ -67,7 +60,6 @@ function GetApp() {
'/favicon.ico', '/favicon.ico',
'/getVeteranPw', '/getVeteranPw',
'/moodle-test-userscript/stable.user.js', '/moodle-test-userscript/stable.user.js',
'/donate',
'/irc', '/irc',
], ],
}) })
@ -130,10 +122,6 @@ function GetApp() {
from: '/lred', from: '/lred',
to: '/allQuestions.html', to: '/allQuestions.html',
}, },
{
from: '/donate',
to: donateURL,
},
{ {
// to be backwards compatible // to be backwards compatible
from: '/legacy', from: '/legacy',

@ -1 +1 @@
Subproject commit ebad81a75ec4bb43d918136adf1724d25f3f91a9 Subproject commit e21f281dc5301020de8c7f9dfe654281e36e9e5d