diff options
Diffstat (limited to 'server/src/ui')
| -rw-r--r-- | server/src/ui/assets.rs | 29 | ||||
| -rw-r--r-- | server/src/ui/mod.rs | 2 |
2 files changed, 1 insertions, 30 deletions
diff --git a/server/src/ui/assets.rs b/server/src/ui/assets.rs index 5903b83..089f293 100644 --- a/server/src/ui/assets.rs +++ b/server/src/ui/assets.rs @@ -51,32 +51,3 @@ pub async fn r_image_fallback_person( })?; Ok(Redirect::found(u_image(&path, size.unwrap_or(2048)))) } - -// #[get("/n/<id>/image/<slot>?<size>")] -// pub async fn r_item_poster( -// session: A<Session>, -// id: A<NodeID>, -// slot: &str, -// size: Option<usize>, -// ) -> MyResult<Redirect> { -// let slot = PictureSlot::from_str(slot).map_err(|_| anyhow!("slot invalid"))?; -// let node = get_node(&session.0, id.0, false, false, NodeFilterSort::default())?; -// let picture = node -// .node -// .pictures -// .get(&slot) -// .cloned() -// .ok_or(anyhow!("no pic todo"))?; -// Ok(Redirect::permanent(rocket::uri!(r_image(picture, size)))) -// } - -// #[get("/n/<id>/thumbnail?<t>&<size>")] -// pub async fn r_node_thumbnail( -// session: A<Session>, -// id: A<NodeID>, -// t: f64, -// size: Option<usize>, -// ) -> MyResult<Redirect> { -// let picture = get_node_thumbnail(&session.0, id.0, t).await?; -// Ok(Redirect::permanent(rocket::uri!(r_image(picture, size)))) -// } diff --git a/server/src/ui/mod.rs b/server/src/ui/mod.rs index 6cb3cd2..2dab076 100644 --- a/server/src/ui/mod.rs +++ b/server/src/ui/mod.rs @@ -15,10 +15,10 @@ pub mod admin; pub mod assets; pub mod error; pub mod home; +pub mod items; pub mod node; pub mod player; pub mod style; -pub mod items; #[get("/")] pub async fn r_index(ri: RequestInfo<'_>) -> MyResult<Redirect> { |