1
0
Fork 0
mirror of https://github.com/Chocobozzz/PeerTube.git synced 2025-10-04 10:19:35 +02:00

Server: paths refractoring

This commit is contained in:
Chocobozzz 2017-01-17 21:42:47 +01:00
parent 1e4b0080ff
commit 15103f11ec
8 changed files with 61 additions and 38 deletions

View file

@ -5,6 +5,7 @@ const waterfall = require('async/waterfall')
const db = require('../../initializers/database')
const logger = require('../../helpers/logger')
const peertubeCrypto = require('../../helpers/peertube-crypto')
const utils = require('../../helpers/utils')
const friends = require('../../lib/friends')
const middlewares = require('../../middlewares')
@ -67,7 +68,7 @@ function addPods (req, res, next) {
},
function fetchMyCertificate (callback) {
friends.getMyCertificate(function (err, cert) {
peertubeCrypto.getMyPublicCert(function (err, cert) {
if (err) {
logger.error('Cannot read cert file.')
return callback(err)