Test
This commit is contained in:
parent
364c75e572
commit
829c7ba8f3
1 changed files with 2 additions and 2 deletions
|
@ -17,11 +17,11 @@ mainApp.factory('Compute',[ '$http', 'Identity', function($http, Identity){
|
||||||
var getMachines=function(callback){
|
var getMachines=function(callback){
|
||||||
|
|
||||||
var result=$http.post('../server/index.php',
|
var result=$http.post('../server/index.php',
|
||||||
$.param({"token" : Identity.getToken(), "task" : "compute", "action":"getImage", "serverID":"69d5bcc4-2fab-4634-b0d2-f455fee5b7bd"}));
|
$.param({"token" : Identity.getToken(), "task" : "compute", "action":"listServers"}));
|
||||||
|
|
||||||
// Wait and handle the response
|
// Wait and handle the response
|
||||||
result.then(function (response){
|
result.then(function (response){
|
||||||
alert(response);
|
console.log(response.data.Servers);
|
||||||
callback(parseGetMachinesAnswer(response, false));
|
callback(parseGetMachinesAnswer(response, false));
|
||||||
},function(response){
|
},function(response){
|
||||||
alert(response.status);
|
alert(response.status);
|
||||||
|
|
Loading…
Add table
Reference in a new issue