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 {
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 = {
method : "GET",
url : url
@ -16,7 +16,7 @@ service.factory('apiService', ['$http', function($http) {
return $http(req);
},
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 = {
method : "GET",
url : url