mirror of
https://gitlab.com/MrFry/mrfrys-node-server
synced 2025-04-01 20:24:18 +02:00
removed some domain dependencies
This commit is contained in:
parent
f8a7c6a4e5
commit
bc45b11551
13 changed files with 17 additions and 31 deletions
|
@ -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')
|
||||
}
|
||||
})
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue