use axum::{response::IntoResponse, Json}; use tracing::{error, instrument}; use waifulib::house::House; use waifulib::waifu::Waifu; use crate::errors::*; pub async fn list() -> JsonResult>> { let con_url = std::env::var("QEMU_URL").unwrap_or("qemu:///system".to_string()); let mut house: House = House::new(con_url)?; let inhabitants = house.inhabitants()?; Ok(Json(inhabitants)) }