AngularJS: Updating Services to the new API scheme
This commit is contained in:
parent
7bba774a3f
commit
d0c91b0c70
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue