aboutsummaryrefslogtreecommitdiffhomepage
path: root/controllers
diff options
context:
space:
mode:
authorChocobozzz <florian.bigard@gmail.com>2016-02-05 18:03:20 +0100
committerChocobozzz <florian.bigard@gmail.com>2016-02-05 18:03:20 +0100
commitdac0a5319ab1c52a0958647b1593f85339b77e29 (patch)
tree716bc9e7e0b9fd3a7066530e50e73991fb278d05 /controllers
parenta5fa04b0cce851f680a45055f57ed2c3d22f1c82 (diff)
downloadPeerTube-dac0a5319ab1c52a0958647b1593f85339b77e29.tar.gz
PeerTube-dac0a5319ab1c52a0958647b1593f85339b77e29.tar.zst
PeerTube-dac0a5319ab1c52a0958647b1593f85339b77e29.zip
Split utils file
Diffstat (limited to 'controllers')
-rw-r--r--controllers/api/v1/pods.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/controllers/api/v1/pods.js b/controllers/api/v1/pods.js
index 3e457ec57..29517ba8e 100644
--- a/controllers/api/v1/pods.js
+++ b/controllers/api/v1/pods.js
@@ -8,11 +8,11 @@
8 var friends = require('../../../lib/friends') 8 var friends = require('../../../lib/friends')
9 var middleware = require('../../../middlewares') 9 var middleware = require('../../../middlewares')
10 var cacheMiddleware = middleware.cache 10 var cacheMiddleware = middleware.cache
11 var peertubeCrypto = require('../../../helpers/peertubeCrypto')
11 var Pods = require('../../../models/pods') 12 var Pods = require('../../../models/pods')
12 var reqValidator = middleware.reqValidators.pods 13 var reqValidator = middleware.reqValidators.pods
13 var secureMiddleware = middleware.secure 14 var secureMiddleware = middleware.secure
14 var secureRequest = middleware.reqValidators.remote.secureRequest 15 var secureRequest = middleware.reqValidators.remote.secureRequest
15 var utils = require('../../../helpers/utils')
16 var Videos = require('../../../models/videos') 16 var Videos = require('../../../models/videos')
17 17
18 var router = express.Router() 18 var router = express.Router()
@@ -37,7 +37,7 @@
37 37
38 Videos.addRemotes(informations.videos) 38 Videos.addRemotes(informations.videos)
39 39
40 fs.readFile(utils.getCertDir() + 'peertube.pub', 'utf8', function (err, cert) { 40 fs.readFile(peertubeCrypto.getCertDir() + 'peertube.pub', 'utf8', function (err, cert) {
41 if (err) { 41 if (err) {
42 logger.error('Cannot read cert file.', { error: err }) 42 logger.error('Cannot read cert file.', { error: err })
43 return next(err) 43 return next(err)