Adding info about self
This commit is contained in:
parent
8fdfb470cb
commit
d584c119ef
@ -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});
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user