mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-06 03:50:26 +02:00
OAuth/User models refractoring -> use mongoose api
This commit is contained in:
parent
a3ee6fa22d
commit
69b0a27cbb
14 changed files with 217 additions and 156 deletions
16
server.js
16
server.js
|
@ -13,14 +13,6 @@ const WebSocketServer = require('ws').Server
|
|||
// Create our main app
|
||||
const app = express()
|
||||
|
||||
// ----------- Checker -----------
|
||||
const checker = require('./server/initializers/checker')
|
||||
|
||||
const miss = checker.checkConfig()
|
||||
if (miss.length !== 0) {
|
||||
throw new Error('Miss some configurations keys : ' + miss)
|
||||
}
|
||||
|
||||
// ----------- Database -----------
|
||||
const config = require('config')
|
||||
const constants = require('./server/initializers/constants')
|
||||
|
@ -29,6 +21,14 @@ const logger = require('./server/helpers/logger')
|
|||
|
||||
database.connect()
|
||||
|
||||
// ----------- Checker -----------
|
||||
const checker = require('./server/initializers/checker')
|
||||
|
||||
const miss = checker.checkConfig()
|
||||
if (miss.length !== 0) {
|
||||
throw new Error('Miss some configurations keys : ' + miss)
|
||||
}
|
||||
|
||||
// ----------- PeerTube modules -----------
|
||||
const customValidators = require('./server/helpers/customValidators')
|
||||
const installer = require('./server/initializers/installer')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue