diff options
author | Cara Salter <cara@devcara.com> | 2022-06-08 14:14:24 -0400 |
---|---|---|
committer | Cara Salter <cara@devcara.com> | 2022-06-08 14:14:46 -0400 |
commit | 6a777564a4319a3809a9e2872a3eaf1cc39b8b01 (patch) | |
tree | 1020d58993cfef64abc6b4b17ccefe9bd5ec4bf6 /src/handlers/waifus.rs | |
parent | 64db5de9920c2668488693df02baaed41ee1340d (diff) | |
download | solard-6a777564a4319a3809a9e2872a3eaf1cc39b8b01.tar.gz solard-6a777564a4319a3809a9e2872a3eaf1cc39b8b01.zip |
meta: Complete project rename
Diffstat (limited to 'src/handlers/waifus.rs')
-rw-r--r-- | src/handlers/waifus.rs | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/src/handlers/waifus.rs b/src/handlers/waifus.rs deleted file mode 100644 index 117ba15..0000000 --- a/src/handlers/waifus.rs +++ /dev/null @@ -1,18 +0,0 @@ -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<Json<Vec<Waifu>>> { - 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)) -} - |