From 9ddc035443d8422cb66fd9b9b3046d91030f1e8e Mon Sep 17 00:00:00 2001 From: Sagi Dayan Date: Fri, 26 Jun 2015 14:53:40 +0300 Subject: [PATCH] apiServices - Added token Param in to getCamusesByUser --- templates/js/services/apiService.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/js/services/apiService.js b/templates/js/services/apiService.js index e619186..7948658 100644 --- a/templates/js/services/apiService.js +++ b/templates/js/services/apiService.js @@ -99,8 +99,8 @@ service.factory('apiService', ['$http', function($http) { }; return $http(req); }, - getCampusesByUser: function(){ - var url = (DEBUG ? "http://localhost:8080" : "http://se-hub.appspot.com") + "/api/courses/getCampusesByUser/" + token; + getCampusesByUser: function(token){ + var url = (DEBUG ? "http://localhost:8080" : "http://se-hub.appspot.com") + "/api/campuses/getCampusesByUser/" + token; req = { method : "GET", url : url