From 5bdcff7f517469586088aff6a1dee9d36d288a1f Mon Sep 17 00:00:00 2001 From: Sagi Dayan Date: Wed, 10 Jun 2015 13:36:31 +0300 Subject: [PATCH] Angularjs: New api service method getAllCampuses --- templates/js/services/apiService.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/templates/js/services/apiService.js b/templates/js/services/apiService.js index dafc060..b794224 100644 --- a/templates/js/services/apiService.js +++ b/templates/js/services/apiService.js @@ -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); }