Adding info about self #88

Merged
tonitch merged 3 commits from tonitch/front/userSelf into master 2024-03-13 09:54:57 +01:00
Showing only changes of commit d584c119ef - Show all commits

View File

@ -25,3 +25,26 @@ export async function getAllUsers(){
return restGet("/users"); return restGet("/users");
} }
/**
* Get informations about yourself
* - RegNo
* - FirstName / LastName
* - email
* - adressId (?)
* - birthDate
* - role
*/
export async function getSelf(){
return restGet("/user");
}
/**
* Alterable datas are
* - email
* - photo
* - Adress
*/
export async function alterSelf(data){
return restPatch({data});
}