Browse Source

replace copay with bws in app base path

activeAddress
Ivan Socolsky 10 years ago
parent
commit
bb096aad46
  1. 7
      app.js
  2. 2
      lib/expressapp.js

7
app.js

@ -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);

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;
};

Loading…
Cancel
Save