summaryrefslogtreecommitdiff
path: root/client/js/services
diff options
context:
space:
mode:
Diffstat (limited to 'client/js/services')
-rw-r--r--client/js/services/Compute.js30
1 files changed, 30 insertions, 0 deletions
diff --git a/client/js/services/Compute.js b/client/js/services/Compute.js
new file mode 100644
index 0000000..748510e
--- /dev/null
+++ b/client/js/services/Compute.js
@@ -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
+ };
+
+
+}]);