1
0
Fork 0
mirror of https://github.com/Chocobozzz/PeerTube.git synced 2025-10-05 02:39:33 +02:00

Server: error if we add a pod that already exists

This commit is contained in:
Chocobozzz 2017-01-27 11:55:31 +01:00
parent 0d4fb7e6d4
commit b09ce6455f
5 changed files with 41 additions and 12 deletions

View file

@ -20,8 +20,8 @@ const router = express.Router()
router.get('/', listPods)
router.post('/',
podsMiddleware.setBodyHostPort, // We need to modify the host before running the validator!
validators.podsAdd,
podsMiddleware.setBodyHostPort,
addPods
)
router.post('/makefriends',