AngularJS Service getCoursesByUserID
This commit is contained in:
parent
5b87b0a4d0
commit
edac533f2b
1 changed files with 9 additions and 0 deletions
|
@ -168,6 +168,15 @@ service.factory('apiService', ['$http', function($http) {
|
||||||
data: payLoad
|
data: payLoad
|
||||||
};
|
};
|
||||||
return $http(req);
|
return $http(req);
|
||||||
|
},
|
||||||
|
getCoursesByUserID: function(token, userId){
|
||||||
|
var url = (DEBUG ? "http://localhost:8080" : "http://se-hub.appspot.com") + "/api/courses/getCoursesByUser/" + token + "/" + userId;
|
||||||
|
req = {
|
||||||
|
method : "GET",
|
||||||
|
url : url,
|
||||||
|
data: payLoad
|
||||||
|
};
|
||||||
|
return $http(req);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
}]);
|
}]);
|
Loading…
Reference in a new issue