Implement an endpoint to get all the courses of an user
This commit is contained in:
@ -71,3 +71,11 @@ export async function getCourses(role){
|
||||
export async function alterCourse(id, changes){
|
||||
return restPatch("/course/" + id, changes);
|
||||
}
|
||||
|
||||
/**
|
||||
* Return a list containing all the actual courses of a user
|
||||
*/
|
||||
|
||||
export async function getUserActualCourses(userId){
|
||||
return restGet("/usercourses/"+userId)
|
||||
}
|
Reference in New Issue
Block a user