aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/middlewares/validators/pods.js
diff options
context:
space:
mode:
Diffstat (limited to 'server/middlewares/validators/pods.js')
-rw-r--r--server/middlewares/validators/pods.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/server/middlewares/validators/pods.js b/server/middlewares/validators/pods.js
index fd3d1e2f2..4f8bad2f9 100644
--- a/server/middlewares/validators/pods.js
+++ b/server/middlewares/validators/pods.js
@@ -10,7 +10,7 @@ const validatorsPod = {
10} 10}
11 11
12function makeFriends (req, res, next) { 12function makeFriends (req, res, next) {
13 req.checkBody('urls', 'Should have an array of unique urls').isEachUniqueUrlValid() 13 req.checkBody('hosts', 'Should have an array of unique hosts').isEachUniqueHostValid()
14 14
15 logger.debug('Checking makeFriends parameters', { parameters: req.body }) 15 logger.debug('Checking makeFriends parameters', { parameters: req.body })
16 16
@@ -32,7 +32,7 @@ function makeFriends (req, res, next) {
32} 32}
33 33
34function podsAdd (req, res, next) { 34function podsAdd (req, res, next) {
35 req.checkBody('url', 'Should have an url').notEmpty().isURL({ require_protocol: true }) 35 req.checkBody('host', 'Should have an host').notEmpty().isURL()
36 req.checkBody('publicKey', 'Should have a public key').notEmpty() 36 req.checkBody('publicKey', 'Should have a public key').notEmpty()
37 37
38 // TODO: check we don't have it already 38 // TODO: check we don't have it already