API & AngularJS: Updating API Routes - API_Dev Merge

and Service Update
This commit is contained in:
Sagi Dayan 2015-06-15 16:51:13 +03:00
parent 1c05b8aea1
commit 1ec45d107c
2 changed files with 2 additions and 2 deletions

View file

@ -188,4 +188,4 @@ def getCampusId(name):
@campus_routes.route('/api/campuses/help') @campus_routes.route('/api/campuses/help')
def documentation(): def documentation():
return auto.html() return auto.html()

View file

@ -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/getAll/" + token;
req = { req = {
method : "GET", method : "GET",
url : url url : url