diff options
| author | manzerbredes <loic.guegan_secondary@yahoo.fr> | 2016-02-22 17:30:25 +0100 |
|---|---|---|
| committer | manzerbredes <loic.guegan_secondary@yahoo.fr> | 2016-02-22 17:30:25 +0100 |
| commit | ff1832adcfe10fadb6cbf738c874611f77f6dd43 (patch) | |
| tree | b5a669023c1b19244f674fd459558b75f153dbd4 /client/js/services/Compute.js | |
| parent | 0c31cbdbd4aaf41c5f24f96e1ee0ae79a8baee24 (diff) | |
Edit Compute service and home controller
Diffstat (limited to 'client/js/services/Compute.js')
| -rw-r--r-- | client/js/services/Compute.js | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/client/js/services/Compute.js b/client/js/services/Compute.js index 748510e..c5c8da9 100644 --- a/client/js/services/Compute.js +++ b/client/js/services/Compute.js @@ -2,6 +2,10 @@ mainApp.factory('Compute',[ '$http', 'Identity', function($http, Identity){ + + var data={}; + data.machines={}; + // Parser var parseGetMachinesAnswer=function(response, failedToSendRequest){ @@ -13,17 +17,23 @@ mainApp.factory('Compute',[ '$http', 'Identity', function($http, Identity){ var getMachines=function(callback){ var result=$http.post('../server/index.php', - $.param({"token" : Identity.profile.token, "task" : "Compute"})); + $.param({"token" : Identity.profile.token, "task" : "Compute"})); - }; + + + var pullData=function(callback){ + // TODO call getMachines etc... + } // Return services objects return { getMachines: getMachines + pullData: pullData + data:data }; |
