4 angular.module(
'myAppServices', [])
7 this.baseURL = client_server_prefix +
'/ajax/';
9 this.getVersion =
function(callback) {
10 return $http.get(this.baseURL +
'version/get').success(callback);
12 this.getCurrent =
function(callback) {
13 return $http.get(this.baseURL +
'current/get').success(callback);
15 this.getCppNumber =
function(callback) {
16 return $http.get(this.baseURL +
'calcpy/getNumber').success(callback);
19 .service(
'srvCommands',
21 this.baseURL = client_server_prefix +
'/ajax/calcpy/';
23 this.getCppCommands =
function(callback) {
24 return $http.get(this.baseURL +
'getCommands').success(callback);
26 this.startCommand =
function(callback) {
27 return $http.get(this.baseURL +
'startCommand').success(callback);