aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/controllers/api
diff options
context:
space:
mode:
authorChocobozzz <florian.bigard@gmail.com>2017-01-27 11:55:31 +0100
committerChocobozzz <florian.bigard@gmail.com>2017-01-27 11:55:31 +0100
commitb09ce6455f8e2bf9dd741532e6ad09309880ff74 (patch)
tree7d2ec942e50b8f3347ed4287e07e2bc88619e585 /server/controllers/api
parent0d4fb7e6d482635cd725cd2f09cf981f82cbd92c (diff)
downloadPeerTube-b09ce6455f8e2bf9dd741532e6ad09309880ff74.tar.gz
PeerTube-b09ce6455f8e2bf9dd741532e6ad09309880ff74.tar.zst
PeerTube-b09ce6455f8e2bf9dd741532e6ad09309880ff74.zip
Server: error if we add a pod that already exists
Diffstat (limited to 'server/controllers/api')
-rw-r--r--server/controllers/api/pods.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/controllers/api/pods.js b/server/controllers/api/pods.js
index e1fe6fb5d..da991f8d9 100644
--- a/server/controllers/api/pods.js
+++ b/server/controllers/api/pods.js
@@ -20,8 +20,8 @@ const router = express.Router()
20 20
21router.get('/', listPods) 21router.get('/', listPods)
22router.post('/', 22router.post('/',
23 podsMiddleware.setBodyHostPort, // We need to modify the host before running the validator!
23 validators.podsAdd, 24 validators.podsAdd,
24 podsMiddleware.setBodyHostPort,
25 addPods 25 addPods
26) 26)
27router.post('/makefriends', 27router.post('/makefriends',