From dac0a5319ab1c52a0958647b1593f85339b77e29 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 5 Feb 2016 18:03:20 +0100 Subject: Split utils file --- controllers/api/v1/pods.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'controllers/api') 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 @@ var friends = require('../../../lib/friends') var middleware = require('../../../middlewares') var cacheMiddleware = middleware.cache + var peertubeCrypto = require('../../../helpers/peertubeCrypto') var Pods = require('../../../models/pods') var reqValidator = middleware.reqValidators.pods var secureMiddleware = middleware.secure var secureRequest = middleware.reqValidators.remote.secureRequest - var utils = require('../../../helpers/utils') var Videos = require('../../../models/videos') var router = express.Router() @@ -37,7 +37,7 @@ Videos.addRemotes(informations.videos) - fs.readFile(utils.getCertDir() + 'peertube.pub', 'utf8', function (err, cert) { + fs.readFile(peertubeCrypto.getCertDir() + 'peertube.pub', 'utf8', function (err, cert) { if (err) { logger.error('Cannot read cert file.', { error: err }) return next(err) -- cgit v1.2.3