Simple hook for when the backend is ready
All checks were successful
Build and test backend / Build-backend (pull_request) Successful in 2m2s
Build and test backend / Test-backend (pull_request) Successful in 1m59s
Build and test FrontEnd / Build-frontend (pull_request) Successful in 23s

This commit is contained in:
2024-03-13 18:22:28 +01:00
parent 198ee8a4ce
commit 3996765c8a
3 changed files with 32 additions and 25 deletions

View File

@ -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