Angularjs: New api service method getAllCampuses
This commit is contained in:
parent
085047c2bf
commit
5bdcff7f51
1 changed files with 9 additions and 0 deletions
|
@ -12,6 +12,15 @@ service.factory('apiService', ['$http', function($http) {
|
||||||
method : "GET",
|
method : "GET",
|
||||||
url : url
|
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);
|
return $http(req);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue