mirror of
https://github.com/ansible/awx.git
synced 2024-11-02 09:51:09 +03:00
fix request urls used for settings view (#6451)
This commit is contained in:
parent
2cb296d28b
commit
e1a0eec29f
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user