Add route /family/list
This commit is contained in:
		@@ -63,3 +63,8 @@ pub async fn join(
 | 
			
		||||
 | 
			
		||||
    Ok(HttpResponse::Accepted().finish())
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
/// Get the list of families of the user
 | 
			
		||||
pub async fn list(token: LoginToken) -> HttpResult {
 | 
			
		||||
    Ok(HttpResponse::Ok().json(families_service::get_user_memberships(token.user_id).await?))
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user