From c13b726cbbfa5526b84d13c2111ec67ff6aa8366 Mon Sep 17 00:00:00 2001 From: Sagi Dayan Date: Thu, 2 Jul 2015 17:31:33 +0300 Subject: [PATCH] AngularJS: apiServices: Added Get Campus By ID --- templates/js/services/apiService.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/templates/js/services/apiService.js b/templates/js/services/apiService.js index 81d9e7a..88f78d5 100644 --- a/templates/js/services/apiService.js +++ b/templates/js/services/apiService.js @@ -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); } }; }]); \ No newline at end of file