aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/controllers/api
diff options
context:
space:
mode:
authorChocobozzz <florian.bigard@gmail.com>2017-02-16 19:19:56 +0100
committerChocobozzz <florian.bigard@gmail.com>2017-02-16 19:19:56 +0100
commit4793c343fd3cde3c6282ed0fb38e039b4276de0e (patch)
tree566856a8d0bee0ee06e60c5e3bf6b998135a078a /server/controllers/api
parent3266ad7cf8ff10d0fdae456196eff1653cc7ac21 (diff)
downloadPeerTube-4793c343fd3cde3c6282ed0fb38e039b4276de0e.tar.gz
PeerTube-4793c343fd3cde3c6282ed0fb38e039b4276de0e.tar.zst
PeerTube-4793c343fd3cde3c6282ed0fb38e039b4276de0e.zip
Add email to pods
Diffstat (limited to 'server/controllers/api')
-rw-r--r--server/controllers/api/pods.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/server/controllers/api/pods.js b/server/controllers/api/pods.js
index da991f8d9..1c3eefcc1 100644
--- a/server/controllers/api/pods.js
+++ b/server/controllers/api/pods.js
@@ -4,6 +4,7 @@ const express = require('express')
4const waterfall = require('async/waterfall') 4const waterfall = require('async/waterfall')
5 5
6const db = require('../../initializers/database') 6const db = require('../../initializers/database')
7const constants = require('../../initializers/constants')
7const logger = require('../../helpers/logger') 8const logger = require('../../helpers/logger')
8const peertubeCrypto = require('../../helpers/peertube-crypto') 9const peertubeCrypto = require('../../helpers/peertube-crypto')
9const utils = require('../../helpers/utils') 10const utils = require('../../helpers/utils')
@@ -80,7 +81,7 @@ function addPods (req, res, next) {
80 ], function (err, cert) { 81 ], function (err, cert) {
81 if (err) return next(err) 82 if (err) return next(err)
82 83
83 return res.json({ cert: cert }) 84 return res.json({ cert: cert, email: constants.CONFIG.ADMIN.EMAIL })
84 }) 85 })
85} 86}
86 87