Add compute service
This commit is contained in:
parent
f90968d920
commit
d3047bb539
3 changed files with 34 additions and 3 deletions
30
client/js/services/Compute.js
Normal file
30
client/js/services/Compute.js
Normal file
|
@ -0,0 +1,30 @@
|
|||
|
||||
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
|
||||
};
|
||||
|
||||
|
||||
}]);
|
Loading…
Add table
Add a link
Reference in a new issue