mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-06 13:17:41 +00:00
GUACAMOLE-1579: Stop including the auth token when making requests to the /api/patches endpoint.
This commit is contained in:
@@ -25,17 +25,16 @@ angular.module('rest').factory('patchService', ['$injector',
|
|||||||
|
|
||||||
// Required services
|
// Required services
|
||||||
var requestService = $injector.get('requestService');
|
var requestService = $injector.get('requestService');
|
||||||
var authenticationService = $injector.get('authenticationService');
|
|
||||||
var cacheService = $injector.get('cacheService');
|
var cacheService = $injector.get('cacheService');
|
||||||
|
|
||||||
var service = {};
|
var service = {};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Makes a request to the REST API to get the list of patches, returning
|
* Makes a request to the REST API to get the list of patches, returning
|
||||||
* a promise that provides the array of all applicable patches if
|
* a promise that provides the array of all applicable patches if
|
||||||
* successful. Each patch is a string of raw HTML with meta information
|
* successful. Each patch is a string of raw HTML with meta information
|
||||||
* describing the patch operation stored within meta tags.
|
* describing the patch operation stored within meta tags.
|
||||||
*
|
*
|
||||||
* @returns {Promise.<String[]>}
|
* @returns {Promise.<String[]>}
|
||||||
* A promise which will resolve with an array of HTML patches upon
|
* A promise which will resolve with an array of HTML patches upon
|
||||||
* success.
|
* success.
|
||||||
@@ -43,14 +42,14 @@ angular.module('rest').factory('patchService', ['$injector',
|
|||||||
service.getPatches = function getPatches() {
|
service.getPatches = function getPatches() {
|
||||||
|
|
||||||
// Retrieve all applicable HTML patches
|
// Retrieve all applicable HTML patches
|
||||||
return authenticationService.request({
|
return requestService({
|
||||||
cache : cacheService.patches,
|
cache : cacheService.patches,
|
||||||
method : 'GET',
|
method : 'GET',
|
||||||
url : 'api/patches'
|
url : 'api/patches'
|
||||||
});
|
});
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
return service;
|
return service;
|
||||||
|
|
||||||
}]);
|
}]);
|
||||||
|
Reference in New Issue
Block a user