diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2016-01-30 17:05:22 +0100 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2016-01-30 17:05:22 +0100 |
commit | cda021079ff455cc0fd0eb95a5395fa808ab63d1 (patch) | |
tree | 056716de7460462b74b861051a5e9da6e2633fce /server.js | |
parent | 86435b9baedfe300a28ea4545511c1b50d4119f6 (diff) | |
download | PeerTube-cda021079ff455cc0fd0eb95a5395fa808ab63d1.tar.gz PeerTube-cda021079ff455cc0fd0eb95a5395fa808ab63d1.tar.zst PeerTube-cda021079ff455cc0fd0eb95a5395fa808ab63d1.zip |
New directory organization
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') |