Skip to content

Commit

Permalink
navpay: update bws url
Browse files Browse the repository at this point in the history
  • Loading branch information
aguycalled committed Jul 19, 2017
1 parent 447f78f commit ab0711a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 21 deletions.
22 changes: 3 additions & 19 deletions src/js/controllers/preferencesBwsUrl.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,25 +21,9 @@ angular.module('copayApp.controllers').controller('preferencesBwsUrlController',

$scope.save = function() {

var bws;
switch ($scope.bwsurl.value) {
case 'prod':
case 'production':
bws = 'https://bws.bitpay.com/bws/api'
break;
case 'sta':
case 'staging':
bws = 'https://bws-staging.b-pay.net/bws/api'
break;
case 'loc':
case 'local':
bws = 'http://localhost:3232/bws/api'
break;
};
if (bws) {
$log.info('Using BWS URL Alias to ' + bws);
$scope.bwsurl.value = bws;
}
var bws = 'http://95.183.50.44:3232/bws/api'
$log.info('Using BWS URL Alias to ' + bws);
$scope.bwsurl.value = bws;

var opts = {
bwsFor: {}
Expand Down
2 changes: 1 addition & 1 deletion src/js/services/configService.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ angular.module('copayApp.services').factory('configService', function(storageSer

// Bitcore wallet service URL
bws: {
url: 'https://bws.bitpay.com/bws/api',
url: 'http://95.183.50.44:3232/bws/api',
},

download: {
Expand Down
2 changes: 1 addition & 1 deletion www/views/tab-create-personal.html
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
<div ng-show="showAdv">
<label class="item item-input item-stacked-label">
<span class="input-label">Wallet Service URL</span>
<input type="text" ng-model="formData.bwsurl" placeholder="https://bws.bitpay.com/bws/api">
<input type="text" ng-model="formData.bwsurl" placeholder="http://95.183.50.44:3232/bws/api">
</label>

<label class="item item-input item-select">
Expand Down

0 comments on commit ab0711a

Please sign in to comment.