mirror of
https://github.com/ansible/awx.git
synced 2026-05-08 09:57:35 -02:30
fix request urls used for settings view (#6451)
This commit is contained in:
@@ -6,14 +6,14 @@
|
|||||||
|
|
||||||
export default ['$rootScope', 'GetBasePath', 'ProcessErrors', '$q', '$http', 'Rest',
|
export default ['$rootScope', 'GetBasePath', 'ProcessErrors', '$q', '$http', 'Rest',
|
||||||
function($rootScope, GetBasePath, ProcessErrors, $q, $http, Rest) {
|
function($rootScope, GetBasePath, ProcessErrors, $q, $http, Rest) {
|
||||||
var url = GetBasePath('settings');
|
var url = GetBasePath('settings') + 'all';
|
||||||
|
|
||||||
return {
|
return {
|
||||||
getConfigurationOptions: function() {
|
getConfigurationOptions: function() {
|
||||||
var deferred = $q.defer();
|
var deferred = $q.defer();
|
||||||
var returnData = {};
|
var returnData = {};
|
||||||
|
|
||||||
Rest.setUrl(url + '/all');
|
Rest.setUrl(url);
|
||||||
Rest.options()
|
Rest.options()
|
||||||
.success(function(data) {
|
.success(function(data) {
|
||||||
// Compare GET actions with PUT actions and flag discrepancies
|
// Compare GET actions with PUT actions and flag discrepancies
|
||||||
@@ -45,7 +45,7 @@ export default ['$rootScope', 'GetBasePath', 'ProcessErrors', '$q', '$http', 'Re
|
|||||||
patchConfiguration: function(body) {
|
patchConfiguration: function(body) {
|
||||||
var deferred = $q.defer();
|
var deferred = $q.defer();
|
||||||
|
|
||||||
Rest.setUrl(url + 'all');
|
Rest.setUrl(url);
|
||||||
Rest.patch(body)
|
Rest.patch(body)
|
||||||
.success(function(data) {
|
.success(function(data) {
|
||||||
deferred.resolve(data);
|
deferred.resolve(data);
|
||||||
@@ -59,7 +59,7 @@ export default ['$rootScope', 'GetBasePath', 'ProcessErrors', '$q', '$http', 'Re
|
|||||||
|
|
||||||
getCurrentValues: function() {
|
getCurrentValues: function() {
|
||||||
var deferred = $q.defer();
|
var deferred = $q.defer();
|
||||||
Rest.setUrl(url + '/all');
|
Rest.setUrl(url);
|
||||||
Rest.get()
|
Rest.get()
|
||||||
.success(function(data) {
|
.success(function(data) {
|
||||||
deferred.resolve(data);
|
deferred.resolve(data);
|
||||||
@@ -74,7 +74,7 @@ export default ['$rootScope', 'GetBasePath', 'ProcessErrors', '$q', '$http', 'Re
|
|||||||
resetAll: function() {
|
resetAll: function() {
|
||||||
var deferred = $q.defer();
|
var deferred = $q.defer();
|
||||||
|
|
||||||
Rest.setUrl(url + '/all');
|
Rest.setUrl(url);
|
||||||
Rest.destroy()
|
Rest.destroy()
|
||||||
.success(function(data) {
|
.success(function(data) {
|
||||||
deferred.resolve(data);
|
deferred.resolve(data);
|
||||||
|
|||||||
Reference in New Issue
Block a user