From b09ce6455f8e2bf9dd741532e6ad09309880ff74 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 27 Jan 2017 11:55:31 +0100 Subject: Server: error if we add a pod that already exists --- server/controllers/api/pods.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'server/controllers/api') 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() 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', -- cgit v1.2.3