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