You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ode.apache.org by sa...@apache.org on 2016/10/06 07:27:28 UTC
ode-console git commit: identification of host to be added to the
PMAPI endpoints
Repository: ode-console
Updated Branches:
refs/heads/master 624c8d28c -> a0cdf6304
identification of host to be added to the PMAPI endpoints
Project: http://git-wip-us.apache.org/repos/asf/ode-console/repo
Commit: http://git-wip-us.apache.org/repos/asf/ode-console/commit/a0cdf630
Tree: http://git-wip-us.apache.org/repos/asf/ode-console/tree/a0cdf630
Diff: http://git-wip-us.apache.org/repos/asf/ode-console/diff/a0cdf630
Branch: refs/heads/master
Commit: a0cdf6304de310dfc1a7eac603397d9d43198c3b
Parents: 624c8d2
Author: sathwik <sa...@apache.org>
Authored: Thu Oct 6 12:56:42 2016 +0530
Committer: sathwik <sa...@apache.org>
Committed: Thu Oct 6 12:56:42 2016 +0530
----------------------------------------------------------------------
src/app/index.js | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/ode-console/blob/a0cdf630/src/app/index.js
----------------------------------------------------------------------
diff --git a/src/app/index.js b/src/app/index.js
index b5179d6..4b067ef 100644
--- a/src/app/index.js
+++ b/src/app/index.js
@@ -27,6 +27,7 @@ underscore.factory('_', function() {
return window._;
});
+var rootURI = window.location.toString().split('ode')[0];
angular.module('odeConsole', ['ngAnimate', 'ngSanitize', 'ngRoute', 'ui.bootstrap', 'ngToast', 'smart-table', 'xml', 'angularMoment', 'underscore', 'angular-loading-bar', 'ui.ace', 'naif.base64'])
.config(function ($httpProvider) {
@@ -61,9 +62,9 @@ angular.module('odeConsole', ['ngAnimate', 'ngSanitize', 'ngRoute', 'ui.bootstra
redirectTo: '/'
});
})
- .constant('IMAPI_ENDPOINT', 'http://localhost:8080/ode/processes/InstanceManagement')
- .constant('PMAPI_ENDPOINT', 'http://localhost:8080/ode/processes/ProcessManagement')
- .constant('DSAPI_ENDPOINT', 'http://localhost:8080/ode/processes/DeploymentService')
+ .constant('IMAPI_ENDPOINT', rootURI+'ode/processes/InstanceManagement')
+ .constant('PMAPI_ENDPOINT', rootURI+'ode/processes/ProcessManagement')
+ .constant('DSAPI_ENDPOINT', rootURI+'ode/processes/DeploymentService')
.constant('POLLING_INTERVAL', '4000')
.filter('escape', function() {
return window.encodeURIComponent;