syncope-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From skylar...@apache.org
Subject syncope git commit: [SYNCOPE-1155] Hard-coded /syncope-enduser HTTP subcontext
Date Wed, 02 Aug 2017 12:10:15 GMT
Repository: syncope
Updated Branches:
  refs/heads/2_0_X fed232c33 -> 0a0bf05c4


[SYNCOPE-1155] Hard-coded /syncope-enduser HTTP subcontext


Project: http://git-wip-us.apache.org/repos/asf/syncope/repo
Commit: http://git-wip-us.apache.org/repos/asf/syncope/commit/0a0bf05c
Tree: http://git-wip-us.apache.org/repos/asf/syncope/tree/0a0bf05c
Diff: http://git-wip-us.apache.org/repos/asf/syncope/diff/0a0bf05c

Branch: refs/heads/2_0_X
Commit: 0a0bf05c42a6ef59835c3e247035cc898ab4c4db
Parents: fed232c
Author: skylark17 <matteo.alessandroni@tirasa.net>
Authored: Wed Aug 2 14:09:40 2017 +0200
Committer: skylark17 <matteo.alessandroni@tirasa.net>
Committed: Wed Aug 2 14:09:40 2017 +0200

----------------------------------------------------------------------
 .../META-INF/resources/app/js/directives/captcha.js     |  2 +-
 .../META-INF/resources/app/js/services/anyService.js    |  4 ++--
 .../META-INF/resources/app/js/services/authService.js   |  4 ++--
 .../META-INF/resources/app/js/services/groupService.js  |  2 +-
 .../META-INF/resources/app/js/services/infoService.js   |  2 +-
 .../META-INF/resources/app/js/services/realmService.js  |  2 +-
 .../resources/app/js/services/resourceService.js        |  2 +-
 .../resources/app/js/services/saml2IdPService.js        |  2 +-
 .../META-INF/resources/app/js/services/schemaService.js |  4 ++--
 .../app/js/services/securityQuestionService.js          |  4 ++--
 .../resources/app/js/services/userSelfService.js        | 12 ++++++------
 11 files changed, 20 insertions(+), 20 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/syncope/blob/0a0bf05c/client/enduser/src/main/resources/META-INF/resources/app/js/directives/captcha.js
----------------------------------------------------------------------
diff --git a/client/enduser/src/main/resources/META-INF/resources/app/js/directives/captcha.js
b/client/enduser/src/main/resources/META-INF/resources/app/js/directives/captcha.js
index ce62b88..0e76abf 100644
--- a/client/enduser/src/main/resources/META-INF/resources/app/js/directives/captcha.js
+++ b/client/enduser/src/main/resources/META-INF/resources/app/js/directives/captcha.js
@@ -32,7 +32,7 @@ angular.module('self')
 
               //initialize captcha
               $scope.refreshCaptcha = function () {
-                $scope.captchaUrl = '/syncope-enduser/api/captcha' + '?' + new Date();
+                $scope.captchaUrl = '../api/captcha' + '?' + new Date();
               };
 
               // initialize captcha

http://git-wip-us.apache.org/repos/asf/syncope/blob/0a0bf05c/client/enduser/src/main/resources/META-INF/resources/app/js/services/anyService.js
----------------------------------------------------------------------
diff --git a/client/enduser/src/main/resources/META-INF/resources/app/js/services/anyService.js
b/client/enduser/src/main/resources/META-INF/resources/app/js/services/anyService.js
index 09edf18..4c24af2 100644
--- a/client/enduser/src/main/resources/META-INF/resources/app/js/services/anyService.js
+++ b/client/enduser/src/main/resources/META-INF/resources/app/js/services/anyService.js
@@ -26,7 +26,7 @@ angular.module('self')
             var any = {};
 
             any.getAuxClasses = function () {
-              return  $http.get("/syncope-enduser/api/auxClasses")
+              return  $http.get("../api/auxClasses")
                       .then(function (response) {
                         return response.data;
                       }, function (response) {
@@ -37,7 +37,7 @@ angular.module('self')
             };
 
             any.getUserClasses = function () {
-              return  $http.get("/syncope-enduser/api/userClasses")
+              return  $http.get("../api/userClasses")
                       .then(function (response) {
                         return response.data;
                       }, function (response) {

http://git-wip-us.apache.org/repos/asf/syncope/blob/0a0bf05c/client/enduser/src/main/resources/META-INF/resources/app/js/services/authService.js
----------------------------------------------------------------------
diff --git a/client/enduser/src/main/resources/META-INF/resources/app/js/services/authService.js
b/client/enduser/src/main/resources/META-INF/resources/app/js/services/authService.js
index 593781a..8fc0868 100644
--- a/client/enduser/src/main/resources/META-INF/resources/app/js/services/authService.js
+++ b/client/enduser/src/main/resources/META-INF/resources/app/js/services/authService.js
@@ -26,7 +26,7 @@ angular.module('login')
             var authService = {};
             authService.login = function (credentials) {
               return $http
-                      .post('/syncope-enduser/api/login', credentials)
+                      .post('../api/login', credentials)
                       .then(function (response) {
                         return response.data;
                       }, function (response) {
@@ -37,7 +37,7 @@ angular.module('login')
 
             authService.islogged = function () {
               return $http
-                      .get('/syncope-enduser/api/self/islogged')
+                      .get('../api/self/islogged')
                       .then(function (response) {
                         return response.data;
                       }, function (response) {

http://git-wip-us.apache.org/repos/asf/syncope/blob/0a0bf05c/client/enduser/src/main/resources/META-INF/resources/app/js/services/groupService.js
----------------------------------------------------------------------
diff --git a/client/enduser/src/main/resources/META-INF/resources/app/js/services/groupService.js
b/client/enduser/src/main/resources/META-INF/resources/app/js/services/groupService.js
index 59d0e7f..73fdcbb 100644
--- a/client/enduser/src/main/resources/META-INF/resources/app/js/services/groupService.js
+++ b/client/enduser/src/main/resources/META-INF/resources/app/js/services/groupService.js
@@ -24,7 +24,7 @@ angular.module('self')
           function ($group, $q, $http) {
             var groupService = {};
             groupService.getGroups = function (realm) {
-              return  $http.get("/syncope-enduser/api/groups?realm=" + encodeURI(realm))
+              return  $http.get("../api/groups?realm=" + encodeURI(realm))
                       .then(function (response) {
                         return response.data;
                       }, function (response) {

http://git-wip-us.apache.org/repos/asf/syncope/blob/0a0bf05c/client/enduser/src/main/resources/META-INF/resources/app/js/services/infoService.js
----------------------------------------------------------------------
diff --git a/client/enduser/src/main/resources/META-INF/resources/app/js/services/infoService.js
b/client/enduser/src/main/resources/META-INF/resources/app/js/services/infoService.js
index bbc9fe5..645f805 100644
--- a/client/enduser/src/main/resources/META-INF/resources/app/js/services/infoService.js
+++ b/client/enduser/src/main/resources/META-INF/resources/app/js/services/infoService.js
@@ -27,7 +27,7 @@ angular.module('SyncopeEnduserApp')
 
             infoService.getInfo = function () {
               return $http
-                      .get('/syncope-enduser/api/info')
+                      .get('../api/info')
                       .then(function (response) {
                         return response.data;
                       }, function (response) {

http://git-wip-us.apache.org/repos/asf/syncope/blob/0a0bf05c/client/enduser/src/main/resources/META-INF/resources/app/js/services/realmService.js
----------------------------------------------------------------------
diff --git a/client/enduser/src/main/resources/META-INF/resources/app/js/services/realmService.js
b/client/enduser/src/main/resources/META-INF/resources/app/js/services/realmService.js
index a129df7..bab819a 100644
--- a/client/enduser/src/main/resources/META-INF/resources/app/js/services/realmService.js
+++ b/client/enduser/src/main/resources/META-INF/resources/app/js/services/realmService.js
@@ -26,7 +26,7 @@ angular.module('self')
             var realmService = {};
 
             realmService.getAvailableRealms = function () {
-              return $http.get("/syncope-enduser/api/realms")
+              return $http.get("../api/realms")
                       .then(function (response) {
                         return response.data;
                       }, function (response) {

http://git-wip-us.apache.org/repos/asf/syncope/blob/0a0bf05c/client/enduser/src/main/resources/META-INF/resources/app/js/services/resourceService.js
----------------------------------------------------------------------
diff --git a/client/enduser/src/main/resources/META-INF/resources/app/js/services/resourceService.js
b/client/enduser/src/main/resources/META-INF/resources/app/js/services/resourceService.js
index e5d2d2a..724c4ce 100644
--- a/client/enduser/src/main/resources/META-INF/resources/app/js/services/resourceService.js
+++ b/client/enduser/src/main/resources/META-INF/resources/app/js/services/resourceService.js
@@ -27,7 +27,7 @@ angular.module('self')
 
             resourceService.getResources = function () {
 
-              return  $http.get("/syncope-enduser/api/resources")
+              return  $http.get("../api/resources")
                       .then(function (response) {
                         return response.data;
                       }, function (response) {

http://git-wip-us.apache.org/repos/asf/syncope/blob/0a0bf05c/client/enduser/src/main/resources/META-INF/resources/app/js/services/saml2IdPService.js
----------------------------------------------------------------------
diff --git a/client/enduser/src/main/resources/META-INF/resources/app/js/services/saml2IdPService.js
b/client/enduser/src/main/resources/META-INF/resources/app/js/services/saml2IdPService.js
index 7412da7..0c61bf1 100644
--- a/client/enduser/src/main/resources/META-INF/resources/app/js/services/saml2IdPService.js
+++ b/client/enduser/src/main/resources/META-INF/resources/app/js/services/saml2IdPService.js
@@ -26,7 +26,7 @@ angular.module('self')
             var saml2IdPService = {};
 
             saml2IdPService.getAvailableSAML2IdPs = function () {
-              return $http.get("/syncope-enduser/api/saml2IdPs")
+              return $http.get("../api/saml2IdPs")
                       .then(function (response) {
                         return response.data;
                       }, function (response) {

http://git-wip-us.apache.org/repos/asf/syncope/blob/0a0bf05c/client/enduser/src/main/resources/META-INF/resources/app/js/services/schemaService.js
----------------------------------------------------------------------
diff --git a/client/enduser/src/main/resources/META-INF/resources/app/js/services/schemaService.js
b/client/enduser/src/main/resources/META-INF/resources/app/js/services/schemaService.js
index be214fc..3c9fe5a 100644
--- a/client/enduser/src/main/resources/META-INF/resources/app/js/services/schemaService.js
+++ b/client/enduser/src/main/resources/META-INF/resources/app/js/services/schemaService.js
@@ -27,7 +27,7 @@ angular.module('self')
 
             schemaService.getUserSchemas = function (anyTypeClass, sortingFunction) {
               var classParam = anyTypeClass ? "?anyTypeClass=" + encodeURI(anyTypeClass)
: "";
-              return  $http.get("/syncope-enduser/api/schemas" + classParam)
+              return  $http.get("../api/schemas" + classParam)
                       .then(function (response) {
                         var schemas = response.data;
                         if (sortingFunction) {
@@ -44,7 +44,7 @@ angular.module('self')
 
             schemaService.getTypeExtSchemas = function (group) {
               var param = group ? "?group=" + encodeURI(group) : "";
-              return  $http.get("/syncope-enduser/api/schemas" + param)
+              return  $http.get("../api/schemas" + param)
                       .then(function (response) {
                         return response.data;
                       }, function (response) {

http://git-wip-us.apache.org/repos/asf/syncope/blob/0a0bf05c/client/enduser/src/main/resources/META-INF/resources/app/js/services/securityQuestionService.js
----------------------------------------------------------------------
diff --git a/client/enduser/src/main/resources/META-INF/resources/app/js/services/securityQuestionService.js
b/client/enduser/src/main/resources/META-INF/resources/app/js/services/securityQuestionService.js
index 45fa80b..361efe6 100644
--- a/client/enduser/src/main/resources/META-INF/resources/app/js/services/securityQuestionService.js
+++ b/client/enduser/src/main/resources/META-INF/resources/app/js/services/securityQuestionService.js
@@ -26,7 +26,7 @@ angular.module('self')
             var securityQuestionService = {};
 
             securityQuestionService.getAvailableSecurityQuestions = function () {
-              return  $http.get("/syncope-enduser/api/securityQuestions")
+              return  $http.get("../api/securityQuestions")
                       .then(function (response) {
                         return response.data;
                       }, function (response) {
@@ -35,7 +35,7 @@ angular.module('self')
             };
 
             securityQuestionService.getSecurityQuestionByUser = function (username) {
-              return  $http.get("/syncope-enduser/api/securityQuestions/byUser/" + username)
+              return  $http.get("../api/securityQuestions/byUser/" + username)
                       .then(function (response) {
                         return response.data;
                       }, function (response) {

http://git-wip-us.apache.org/repos/asf/syncope/blob/0a0bf05c/client/enduser/src/main/resources/META-INF/resources/app/js/services/userSelfService.js
----------------------------------------------------------------------
diff --git a/client/enduser/src/main/resources/META-INF/resources/app/js/services/userSelfService.js
b/client/enduser/src/main/resources/META-INF/resources/app/js/services/userSelfService.js
index 39fd3a2..2920814 100644
--- a/client/enduser/src/main/resources/META-INF/resources/app/js/services/userSelfService.js
+++ b/client/enduser/src/main/resources/META-INF/resources/app/js/services/userSelfService.js
@@ -25,7 +25,7 @@ angular.module('login')
             var userSelfService = {};
             userSelfService.read = function () {
               return $http
-                      .get('/syncope-enduser/api/self/read')
+                      .get('../api/self/read')
                       .then(function (response) {
                         return response.data;
                       }, function (response) {
@@ -35,7 +35,7 @@ angular.module('login')
             };
             userSelfService.create = function (user, captcha) {
               return $http
-                      .post('/syncope-enduser/api/self/create', user,
+                      .post('../api/self/create', user,
                               {
                                 headers: {'captcha': captcha}
                               })
@@ -48,7 +48,7 @@ angular.module('login')
             };
             userSelfService.update = function (user, captcha) {
               return $http
-                      .post('/syncope-enduser/api/self/update', user,
+                      .post('../api/self/update', user,
                               {
                                 headers: {'captcha': captcha}
                               })
@@ -61,7 +61,7 @@ angular.module('login')
             };
             userSelfService.passwordReset = function (user, captcha) {
               return $http
-                      .post('/syncope-enduser/api/self/requestPasswordReset', user,
+                      .post('../api/self/requestPasswordReset', user,
                               {
                                 headers: {
                                   'Content-Type': 'application/x-www-form-urlencoded;charset=utf-8',
@@ -82,7 +82,7 @@ angular.module('login')
             };
             userSelfService.confirmPasswordReset = function (body) {
               return $http
-                      .post('/syncope-enduser/api/self/confirmPasswordReset', body,
+                      .post('../api/self/confirmPasswordReset', body,
                               {
                                 headers: {
                                   'Content-Type': 'application/x-www-form-urlencoded;charset=utf-8'
@@ -102,7 +102,7 @@ angular.module('login')
             };
             userSelfService.changePassword = function (body) {
               return $http
-                      .post('/syncope-enduser/api/self/changePassword', body,
+                      .post('../api/self/changePassword', body,
                               {
                                 headers: {
                                   'Content-Type': 'application/x-www-form-urlencoded;charset=utf-8'


Mime
View raw message