|
@ -140,6 +140,14 @@ ExpressApp.prototype.start = function(opts, cb) { |
|
|
}); |
|
|
}); |
|
|
}); |
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
router.put('/v1/copayers/', function(req, res) { |
|
|
|
|
|
var server = getServer(req, res); |
|
|
|
|
|
server.addAccess(req.body, function(err, result) { |
|
|
|
|
|
if (err) return returnError(err, res, req); |
|
|
|
|
|
res.json(result); |
|
|
|
|
|
}); |
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
router.post('/v1/wallets/:id/copayers/', function(req, res) { |
|
|
router.post('/v1/wallets/:id/copayers/', function(req, res) { |
|
|
req.body.walletId = req.params['id']; |
|
|
req.body.walletId = req.params['id']; |
|
|
var server = getServer(req, res); |
|
|
var server = getServer(req, res); |
|
|