aboutsummaryrefslogtreecommitdiffhomepage
path: root/controllers
diff options
context:
space:
mode:
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)