Browse Source

Merge pull request #145 from isocolsky/fix/various

Replace 'copay' with 'bws' in URL
activeAddress
Matias Pando 10 years ago
parent
commit
9344b591e7
  1. 7
      app.js
  2. 2
      lib/expressapp.js
  3. 4
      package.json

7
app.js

@ -2,9 +2,12 @@
var ExpressApp = require('./lib/expressapp'); var ExpressApp = require('./lib/expressapp');
var port = process.env.COPAY_PORT || 3001; var basePath = process.env.BWS_BASE_PATH || '/bws/api';
var port = process.env.BWS_PORT || 3001;
var app = ExpressApp.start(); var app = ExpressApp.start({
basePath: basePath,
});
app.listen(port); app.listen(port);
console.log('Bitcore Wallet Service running on port ' + port); console.log('Bitcore Wallet Service running on port ' + port);

2
lib/expressapp.js

@ -269,7 +269,7 @@ ExpressApp.start = function(opts) {
}); });
}); });
app.use(opts.basePath || '/copay/api', router); app.use(opts.basePath || '/bws/api', router);
return app; return app;
}; };

4
package.json

@ -2,7 +2,7 @@
"name": "bitcore-wallet-service", "name": "bitcore-wallet-service",
"description": "A service for Mutisig HD Bitcoin Wallets", "description": "A service for Mutisig HD Bitcoin Wallets",
"author": "BitPay Inc", "author": "BitPay Inc",
"version": "0.0.7", "version": "0.0.8",
"keywords": [ "keywords": [
"bitcoin", "bitcoin",
"copay", "copay",
@ -19,7 +19,7 @@
}, },
"dependencies": { "dependencies": {
"async": "^0.9.0", "async": "^0.9.0",
"bitcore-wallet-utils": "^0.0.4", "bitcore-wallet-utils": "^0.0.5",
"bitcore-explorers": "^0.9.1", "bitcore-explorers": "^0.9.1",
"body-parser": "^1.11.0", "body-parser": "^1.11.0",
"coveralls": "^2.11.2", "coveralls": "^2.11.2",

Loading…
Cancel
Save