aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/controllers/api/v1/pods.js
diff options
context:
space:
mode:
Diffstat (limited to 'server/controllers/api/v1/pods.js')
-rw-r--r--server/controllers/api/v1/pods.js7
1 files changed, 6 insertions, 1 deletions
diff --git a/server/controllers/api/v1/pods.js b/server/controllers/api/v1/pods.js
index 2bdfe0c92..d509db964 100644
--- a/server/controllers/api/v1/pods.js
+++ b/server/controllers/api/v1/pods.js
@@ -10,6 +10,7 @@ const friends = require('../../../lib/friends')
10const middlewares = require('../../../middlewares') 10const middlewares = require('../../../middlewares')
11const admin = middlewares.admin 11const admin = middlewares.admin
12const oAuth = middlewares.oauth 12const oAuth = middlewares.oauth
13const checkSignature = middlewares.secure.checkSignature
13const validators = middlewares.validators.pods 14const validators = middlewares.validators.pods
14const signatureValidator = middlewares.validators.remote.signature 15const signatureValidator = middlewares.validators.remote.signature
15 16
@@ -31,7 +32,11 @@ router.get('/quitfriends',
31 quitFriends 32 quitFriends
32) 33)
33// Post because this is a secured request 34// Post because this is a secured request
34router.post('/remove', signatureValidator, removePods) 35router.post('/remove',
36 signatureValidator,
37 checkSignature,
38 removePods
39)
35 40
36// --------------------------------------------------------------------------- 41// ---------------------------------------------------------------------------
37 42