Angularjs: New api service method getAllCampuses

This commit is contained in:
Sagi Dayan 2015-06-10 13:36:31 +03:00
parent 085047c2bf
commit 5bdcff7f51

View file

@ -12,6 +12,15 @@ service.factory('apiService', ['$http', function($http) {
method : "GET",
url : url
};
return $http(req);
},
getAllCampuses: function(token){
var url = (DEBUG ? "http://localhost:8080" : "http://se-hub.appspot.com") + "/api/Campuses/" + token;
req = {
method : "GET",
url : url
};
return $http(req);
}