removed some domain dependencies

This commit is contained in:
mrfry 2023-04-11 14:59:26 +02:00
parent f8a7c6a4e5
commit bc45b11551
13 changed files with 17 additions and 31 deletions

View file

@ -239,7 +239,7 @@ Object.keys(modules).forEach(function (key) {
if (mod.setup) {
mod.setup({
url: constants.domain,
url: constants.domain, // used by api.ts -> userManagement.ts -> cookies
userDB: userDB,
publicdirs: module.publicdirs,
nextdir: module.nextdir,
@ -267,7 +267,7 @@ app.get('*', (req, res) => {
if (req.is('application/json')) {
res.status(404).end()
} else {
res.status(404).render('404', { domain: constants.domain })
res.status(404).render('404')
}
})