AngularJS: Updating Services to the new API scheme

This commit is contained in:
Sagi Dayan 2015-06-15 16:23:42 +03:00
parent 7bba774a3f
commit d0c91b0c70

View file

@ -7,7 +7,7 @@ service.factory('apiService', ['$http', function($http) {
return { return {
getUserByToken: function(token){ getUserByToken: function(token){
var url = (DEBUG ? "http://localhost:8080" : "http://se-hub.appspot.com") + "/api/getUserByToken/" + token; var url = (DEBUG ? "http://localhost:8080" : "http://se-hub.appspot.com") + "/api/users/getUserByToken/" + token;
req = { req = {
method : "GET", method : "GET",
url : url url : url
@ -16,7 +16,7 @@ service.factory('apiService', ['$http', function($http) {
return $http(req); return $http(req);
}, },
getAllCampuses: function(token){ getAllCampuses: function(token){
var url = (DEBUG ? "http://localhost:8080" : "http://se-hub.appspot.com") + "/api/Campuses/" + token; var url = (DEBUG ? "http://localhost:8080" : "http://se-hub.appspot.com") + "/api/campuses/" + token;
req = { req = {
method : "GET", method : "GET",
url : url url : url