Merge pull request #145 from isocolsky/fix/various

Replace 'copay' with 'bws' in URL
This commit is contained in:
Matias Pando 2015-03-16 17:20:43 -03:00
commit 9344b591e7
3 changed files with 8 additions and 5 deletions

7
app.js
View File

@ -2,9 +2,12 @@
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);
console.log('Bitcore Wallet Service running on port ' + port);

View File

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

View File

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