mirror of
https://gitlab.com/MrFry/mrfrys-node-server
synced 2025-04-01 20:24:18 +02:00
Moved extra modules, qmining redirect minor fixes
This commit is contained in:
parent
c985fb3ee4
commit
f8a4ccef83
5 changed files with 97 additions and 8 deletions
|
@ -98,10 +98,14 @@ function GetApp(): ModuleType {
|
|||
|
||||
loadDonateURL()
|
||||
|
||||
utils.WatchFile(linksFile, (newData) => {
|
||||
logger.Log(`Donate URL changed: ${newData.replace(/\/n/g, '')}`)
|
||||
loadDonateURL()
|
||||
})
|
||||
if (utils.FileExists(linksFile)) {
|
||||
utils.WatchFile(linksFile, (newData) => {
|
||||
logger.Log(`Donate URL changed: ${newData.replace(/\/n/g, '')}`)
|
||||
loadDonateURL()
|
||||
})
|
||||
} else {
|
||||
logger.Log('Couldnt read donate URL file!', logger.GetColor('red'))
|
||||
}
|
||||
|
||||
// --------------------------------------------------------------
|
||||
// REDIRECTS
|
||||
|
@ -187,8 +191,6 @@ function GetApp(): ModuleType {
|
|||
},
|
||||
]
|
||||
|
||||
console.log(links, simpleRedirects)
|
||||
|
||||
simpleRedirects.forEach((redirect) => {
|
||||
app.get(redirect.from, function(req: Request, res) {
|
||||
if (!redirect.nolog) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue