AngularJS: apiServices: Added Get Campus By ID
This commit is contained in:
parent
f4c9f3be98
commit
c13b726cbb
1 changed files with 8 additions and 0 deletions
|
@ -189,6 +189,14 @@ service.factory('apiService', ['$http', function($http) {
|
|||
data: payLoad
|
||||
};
|
||||
return $http(req);
|
||||
},
|
||||
getCampuseById: function(token, id){
|
||||
var url = (DEBUG ? "http://localhost:8080" : "http://se-hub.appspot.com") + "/api/courses/getCoursesById/" + id;
|
||||
req = {
|
||||
method: "GET",
|
||||
url: url
|
||||
};
|
||||
return $http(req);
|
||||
}
|
||||
};
|
||||
}]);
|
Loading…
Reference in a new issue