mirror of
https://gitlab.com/MrFry/mrfrys-node-server
synced 2025-04-01 20:24:18 +02:00
Readded donate redirect
This commit is contained in:
parent
01440cf6db
commit
0fdd4d915c
1 changed files with 14 additions and 0 deletions
|
@ -62,6 +62,7 @@ function GetApp() {
|
||||||
'/getVeteranPw',
|
'/getVeteranPw',
|
||||||
'/moodle-test-userscript/stable.user.js',
|
'/moodle-test-userscript/stable.user.js',
|
||||||
'/irc',
|
'/irc',
|
||||||
|
'/donate',
|
||||||
],
|
],
|
||||||
})
|
})
|
||||||
)
|
)
|
||||||
|
@ -78,6 +79,15 @@ function GetApp() {
|
||||||
})
|
})
|
||||||
)
|
)
|
||||||
|
|
||||||
|
let donateURL = ''
|
||||||
|
|
||||||
|
try {
|
||||||
|
donateURL = utils.ReadFile('./data/donateURL')
|
||||||
|
} catch (err) {
|
||||||
|
logger.Log('Couldnt read donate URL file!', logger.GetColor('red'))
|
||||||
|
console.error(err)
|
||||||
|
}
|
||||||
|
|
||||||
// --------------------------------------------------------------
|
// --------------------------------------------------------------
|
||||||
// REDIRECTS
|
// REDIRECTS
|
||||||
// --------------------------------------------------------------
|
// --------------------------------------------------------------
|
||||||
|
@ -115,6 +125,10 @@ function GetApp() {
|
||||||
from: '/classesgit',
|
from: '/classesgit',
|
||||||
to: 'https://gitlab.com/MrFry/question-classes',
|
to: 'https://gitlab.com/MrFry/question-classes',
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
from: '/donate',
|
||||||
|
to: donateURL,
|
||||||
|
},
|
||||||
{
|
{
|
||||||
from: '/menuClick',
|
from: '/menuClick',
|
||||||
to: '/',
|
to: '/',
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue