30 lines
439 B
JavaScript
30 lines
439 B
JavaScript
|
|
mainApp.factory('Compute',[ '$http', 'Identity', function($http, Identity){
|
|
|
|
|
|
|
|
// Parser
|
|
var parseGetMachinesAnswer=function(response, failedToSendRequest){
|
|
|
|
};
|
|
|
|
|
|
// Get Machine
|
|
var getMachines=function(callback){
|
|
|
|
var result=$http.post('../server/index.php',
|
|
$.param({"token" : Identity.profile.token, "task" : "Compute"}));
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
// Return services objects
|
|
return {
|
|
getMachines: getMachines
|
|
};
|
|
|
|
|
|
}]);
|