mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-06 13:17:41 +00:00
GUACAMOLE-5: Update tunnelService to match REST changes.
This commit is contained in:
@@ -62,7 +62,7 @@ angular.module('rest').factory('tunnelService', ['$injector',
|
|||||||
// Retrieve tunnels
|
// Retrieve tunnels
|
||||||
return $http({
|
return $http({
|
||||||
method : 'GET',
|
method : 'GET',
|
||||||
url : 'api/tunnels',
|
url : 'api/session/tunnels',
|
||||||
params : httpParameters
|
params : httpParameters
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -100,7 +100,7 @@ angular.module('rest').factory('tunnelService', ['$injector',
|
|||||||
// Build download URL
|
// Build download URL
|
||||||
var url = $window.location.origin
|
var url = $window.location.origin
|
||||||
+ $window.location.pathname
|
+ $window.location.pathname
|
||||||
+ 'api/tunnels/' + encodeURIComponent(tunnel)
|
+ 'api/session/tunnels/' + encodeURIComponent(tunnel)
|
||||||
+ '/streams/' + encodeURIComponent(stream.index)
|
+ '/streams/' + encodeURIComponent(stream.index)
|
||||||
+ '/' + encodeURIComponent(filename)
|
+ '/' + encodeURIComponent(filename)
|
||||||
+ '?token=' + encodeURIComponent(authenticationService.getCurrentToken());
|
+ '?token=' + encodeURIComponent(authenticationService.getCurrentToken());
|
||||||
@@ -163,7 +163,7 @@ angular.module('rest').factory('tunnelService', ['$injector',
|
|||||||
// Build upload URL
|
// Build upload URL
|
||||||
var url = $window.location.origin
|
var url = $window.location.origin
|
||||||
+ $window.location.pathname
|
+ $window.location.pathname
|
||||||
+ 'api/tunnels/' + encodeURIComponent(tunnel)
|
+ 'api/session/tunnels/' + encodeURIComponent(tunnel)
|
||||||
+ '/streams/' + encodeURIComponent(stream.index)
|
+ '/streams/' + encodeURIComponent(stream.index)
|
||||||
+ '/' + encodeURIComponent(file.name)
|
+ '/' + encodeURIComponent(file.name)
|
||||||
+ '?token=' + encodeURIComponent(authenticationService.getCurrentToken());
|
+ '?token=' + encodeURIComponent(authenticationService.getCurrentToken());
|
||||||
|
Reference in New Issue
Block a user