aboutsummaryrefslogtreecommitdiffhomepage
path: root/server.js
diff options
context:
space:
mode:
Diffstat (limited to 'server.js')
-rw-r--r--server.js10
1 files changed, 6 insertions, 4 deletions
diff --git a/server.js b/server.js
index 715556414..3b899689c 100644
--- a/server.js
+++ b/server.js
@@ -1,9 +1,6 @@
1;(function () { 1;(function () {
2 'use strict' 2 'use strict'
3 3
4 // ----------- Constants -----------
5 global.API_VERSION = 'v1'
6
7 // ----------- Node modules ----------- 4 // ----------- Node modules -----------
8 var bodyParser = require('body-parser') 5 var bodyParser = require('body-parser')
9 var express = require('express') 6 var express = require('express')
@@ -30,11 +27,16 @@
30 27
31 checker.createDirectoriesIfNotExist() 28 checker.createDirectoriesIfNotExist()
32 29
30 // ----------- Constants -----------
31 var utils = require('./src/utils')
32
33 global.API_VERSION = 'v1'
34 global.FRIEND_BASE_SCORE = utils.isTestInstance() ? 20 : 100
35
33 // ----------- PeerTube modules ----------- 36 // ----------- PeerTube modules -----------
34 var config = require('config') 37 var config = require('config')
35 var logger = require('./src/logger') 38 var logger = require('./src/logger')
36 var routes = require('./routes') 39 var routes = require('./routes')
37 var utils = require('./src/utils')
38 var videos = require('./src/videos') 40 var videos = require('./src/videos')
39 var webtorrent = require('./src/webTorrentNode') 41 var webtorrent = require('./src/webTorrentNode')
40 42