diff --git a/lib/expressapp.js b/lib/expressapp.js index 6a5fab2..8eae3b4 100644 --- a/lib/expressapp.js +++ b/lib/expressapp.js @@ -132,6 +132,18 @@ ExpressApp.prototype.start = function(opts, cb) { router.post('/v1/wallets/', function(req, res) { var server = getServer(req, res); + req.body.supportBIP44 = false; + server.createWallet(req.body, function(err, walletId) { + if (err) return returnError(err, res, req); + res.json({ + walletId: walletId, + }); + }); + }); + + router.post('/v2/wallets/', function(req, res) { + var server = getServer(req, res); + req.body.supportBIP44 = true; server.createWallet(req.body, function(err, walletId) { if (err) return returnError(err, res, req); res.json({