Simple hook for when the backend is ready
This commit is contained in:
@ -93,6 +93,18 @@ export async function getAllUsers(){
|
||||
return restGet("/users");
|
||||
}
|
||||
|
||||
/**
|
||||
* Return the list of teachers
|
||||
*
|
||||
* @return a list of teachers
|
||||
* each elements is of the form
|
||||
* - id
|
||||
* - name
|
||||
* - role
|
||||
*/
|
||||
export async function getTeachers(){
|
||||
return restGet("/users/teacher")
|
||||
}
|
||||
|
||||
/**
|
||||
* Get informations about yourself
|
||||
|
Reference in New Issue
Block a user