Adding info about self #88
@ -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});
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user