diff options
Diffstat (limited to 'server.js')
-rw-r--r-- | server.js | 18 |
1 files changed, 9 insertions, 9 deletions
@@ -15,7 +15,7 @@ | |||
15 | var app = express() | 15 | var app = express() |
16 | 16 | ||
17 | // ----------- Checker ----------- | 17 | // ----------- Checker ----------- |
18 | var checker = require('./src/checker') | 18 | var checker = require('./initializers/checker') |
19 | 19 | ||
20 | var miss = checker.checkConfig() | 20 | var miss = checker.checkConfig() |
21 | if (miss.length !== 0) { | 21 | if (miss.length !== 0) { |
@@ -28,14 +28,14 @@ | |||
28 | 28 | ||
29 | // ----------- PeerTube modules ----------- | 29 | // ----------- PeerTube modules ----------- |
30 | var config = require('config') | 30 | var config = require('config') |
31 | var constants = require('./src/constants') | 31 | var constants = require('./initializers/constants') |
32 | var customValidators = require('./src/customValidators') | 32 | var customValidators = require('./helpers/customValidators') |
33 | var logger = require('./src/logger') | 33 | var logger = require('./helpers/logger') |
34 | var poolRequests = require('./src/poolRequests') | 34 | var poolRequests = require('./lib/poolRequests') |
35 | var routes = require('./routes') | 35 | var routes = require('./controllers') |
36 | var utils = require('./src/utils') | 36 | var utils = require('./helpers/utils') |
37 | var videos = require('./src/videos') | 37 | var videos = require('./models/videos') |
38 | var webtorrent = require('./src/webTorrentNode') | 38 | var webtorrent = require('./lib/webTorrentNode') |
39 | 39 | ||
40 | // Get configurations | 40 | // Get configurations |
41 | var port = config.get('listen.port') | 41 | var port = config.get('listen.port') |