change endpoint for add access

This commit is contained in:
Matias Alejo Garcia 2015-08-05 17:25:44 -03:00
parent c0d2fca792
commit 0a1b9319e5
1 changed files with 2 additions and 1 deletions

View File

@ -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);