diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2017-02-16 19:19:56 +0100 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2017-02-16 19:19:56 +0100 |
commit | 4793c343fd3cde3c6282ed0fb38e039b4276de0e (patch) | |
tree | 566856a8d0bee0ee06e60c5e3bf6b998135a078a /server/controllers/api | |
parent | 3266ad7cf8ff10d0fdae456196eff1653cc7ac21 (diff) | |
download | PeerTube-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.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 | ||