From e1a0eec29f82344321b5e2e0f9bd67f03c3923c7 Mon Sep 17 00:00:00 2001 From: Jake McDermott Date: Mon, 5 Jun 2017 10:41:27 -0400 Subject: [PATCH] fix request urls used for settings view (#6451) --- .../client/src/configuration/configuration.service.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/awx/ui/client/src/configuration/configuration.service.js b/awx/ui/client/src/configuration/configuration.service.js index c770de2400..99ec54afb7 100644 --- a/awx/ui/client/src/configuration/configuration.service.js +++ b/awx/ui/client/src/configuration/configuration.service.js @@ -6,14 +6,14 @@ export default ['$rootScope', 'GetBasePath', 'ProcessErrors', '$q', '$http', 'Rest', function($rootScope, GetBasePath, ProcessErrors, $q, $http, Rest) { - var url = GetBasePath('settings'); + var url = GetBasePath('settings') + 'all'; return { getConfigurationOptions: function() { var deferred = $q.defer(); var returnData = {}; - Rest.setUrl(url + '/all'); + Rest.setUrl(url); Rest.options() .success(function(data) { // Compare GET actions with PUT actions and flag discrepancies @@ -45,7 +45,7 @@ export default ['$rootScope', 'GetBasePath', 'ProcessErrors', '$q', '$http', 'Re patchConfiguration: function(body) { var deferred = $q.defer(); - Rest.setUrl(url + 'all'); + Rest.setUrl(url); Rest.patch(body) .success(function(data) { deferred.resolve(data); @@ -59,7 +59,7 @@ export default ['$rootScope', 'GetBasePath', 'ProcessErrors', '$q', '$http', 'Re getCurrentValues: function() { var deferred = $q.defer(); - Rest.setUrl(url + '/all'); + Rest.setUrl(url); Rest.get() .success(function(data) { deferred.resolve(data); @@ -74,7 +74,7 @@ export default ['$rootScope', 'GetBasePath', 'ProcessErrors', '$q', '$http', 'Re resetAll: function() { var deferred = $q.defer(); - Rest.setUrl(url + '/all'); + Rest.setUrl(url); Rest.destroy() .success(function(data) { deferred.resolve(data);