From 0a1b9319e55d3a9ce51143b0fe8d95c5f5887031 Mon Sep 17 00:00:00 2001 From: Matias Alejo Garcia Date: Wed, 5 Aug 2015 17:25:44 -0300 Subject: [PATCH] change endpoint for add access --- lib/expressapp.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/expressapp.js b/lib/expressapp.js index dc2cb5a..acdfe8e 100644 --- a/lib/expressapp.js +++ b/lib/expressapp.js @@ -140,7 +140,8 @@ ExpressApp.prototype.start = function(opts, cb) { }); }); - router.put('/v1/copayers/', function(req, res) { + router.put('/v1/copayers/:id/', function(req, res) { + req.body.copayerId = req.params['id']; var server = getServer(req, res); server.addAccess(req.body, function(err, result) { if (err) return returnError(err, res, req);