mirror of
https://gitlab.com/MrFry/mrfrys-node-server
synced 2025-04-01 20:24:18 +02:00
Using re logger top level
This commit is contained in:
parent
ebd27f93c1
commit
131577f25b
2 changed files with 5 additions and 4 deletions
|
@ -31,6 +31,7 @@ const http = require('http')
|
|||
const https = require('https')
|
||||
const cors = require('cors')
|
||||
|
||||
const reqlogger = require('./middlewares/reqlogger.middleware.js')
|
||||
const extraModulesFile = './extraModules.json'
|
||||
const modulesFile = './modules.json'
|
||||
|
||||
|
@ -53,6 +54,10 @@ try {
|
|||
|
||||
const app = express()
|
||||
app.use(cors())
|
||||
app.use(reqlogger([
|
||||
'stable.user.js', // TODO
|
||||
'dataeditor'
|
||||
]))
|
||||
|
||||
Object.keys(modules).forEach(function (k, i) {
|
||||
let x = modules[k]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue