AngularJS: apiServices: Added Get Campus By ID

This commit is contained in:
Sagi Dayan 2015-07-02 17:31:33 +03:00
parent f4c9f3be98
commit c13b726cbb

View file

@ -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);
}
};
}]);