mirror of
https://gitlab.com/MrFry/mrfrys-node-server
synced 2025-04-01 20:24:18 +02:00
Moved public dirs to seperate directories
This commit is contained in:
parent
fe580747d6
commit
4e22b94b5d
9 changed files with 59 additions and 14 deletions
|
@ -112,10 +112,16 @@ Object.keys(modules).forEach(function (k, i) {
|
|||
try {
|
||||
let mod = require(x.path)
|
||||
logger.Log(`Loading ${mod.name} module`, logger.GetColor('yellow'))
|
||||
|
||||
x.publicdirs.forEach((pdir) => {
|
||||
utils.CreatePath(pdir)
|
||||
})
|
||||
|
||||
if (mod.setup) {
|
||||
mod.setup({
|
||||
url: 'https://' + x.urls[0],
|
||||
userDB: userDB
|
||||
userDB: userDB,
|
||||
publicdirs: x.publicdirs
|
||||
})
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue