summaryrefslogtreecommitdiff
path: root/client/js/services/Compute.js
blob: 748510e17cd672d53710ba427f3628cbefc8a75d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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
	};

	
}]);