diff options
Diffstat (limited to 'server/controllers')
-rw-r--r-- | server/controllers/api/pods.js | 3 |
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') | |||
4 | const waterfall = require('async/waterfall') | 4 | const waterfall = require('async/waterfall') |
5 | 5 | ||
6 | const db = require('../../initializers/database') | 6 | const db = require('../../initializers/database') |
7 | const constants = require('../../initializers/constants') | ||
7 | const logger = require('../../helpers/logger') | 8 | const logger = require('../../helpers/logger') |
8 | const peertubeCrypto = require('../../helpers/peertube-crypto') | 9 | const peertubeCrypto = require('../../helpers/peertube-crypto') |
9 | const utils = require('../../helpers/utils') | 10 | const 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 | ||