From bb096aad4640d9c50d12c84551cf8ec76a5aa03e Mon Sep 17 00:00:00 2001 From: Ivan Socolsky Date: Mon, 16 Mar 2015 14:53:14 -0300 Subject: [PATCH] replace copay with bws in app base path --- app.js | 7 +++++-- lib/expressapp.js | 2 +- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/app.js b/app.js index d45a937..1a0ee5f 100644 --- a/app.js +++ b/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); diff --git a/lib/expressapp.js b/lib/expressapp.js index 337a58f..9759e2e 100644 --- a/lib/expressapp.js +++ b/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; };