diff options
Diffstat (limited to 'src/handlers')
-rw-r--r-- | src/handlers/mod.rs | 2 | ||||
-rw-r--r-- | src/handlers/planets.rs (renamed from src/handlers/waifus.rs) | 10 |
2 files changed, 6 insertions, 6 deletions
diff --git a/src/handlers/mod.rs b/src/handlers/mod.rs index addf742..591f76e 100644 --- a/src/handlers/mod.rs +++ b/src/handlers/mod.rs @@ -1 +1 @@ -pub mod waifus; +pub mod planets; diff --git a/src/handlers/waifus.rs b/src/handlers/planets.rs index 117ba15..e80e7fe 100644 --- a/src/handlers/waifus.rs +++ b/src/handlers/planets.rs @@ -2,16 +2,16 @@ use axum::{response::IntoResponse, Json}; use tracing::{error, instrument}; -use waifulib::house::House; -use waifulib::waifu::Waifu; +use solarlib::star::Star; +use solarlib::planet::Planet; use crate::errors::*; -pub async fn list() -> JsonResult<Json<Vec<Waifu>>> { +pub async fn list() -> JsonResult<Json<Vec<Planet>>> { let con_url = std::env::var("QEMU_URL").unwrap_or("qemu:///system".to_string()); - let mut house: House = House::new(con_url)?; + let mut star = Star::new(con_url)?; - let inhabitants = house.inhabitants()?; + let inhabitants = star.inhabitants()?; Ok(Json(inhabitants)) } |