Adding info about self
All checks were successful
Build and test backend / Build-backend (pull_request) Successful in 1m59s
Build and test backend / Test-backend (pull_request) Successful in 1m57s
Build and test FrontEnd / Build-frontend (pull_request) Successful in 26s

This commit is contained in:
Debucquoy Anthony 2024-03-10 11:48:00 +01:00
parent 8fdfb470cb
commit d584c119ef

View File

@ -25,3 +25,26 @@ export async function getAllUsers(){
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});
}