From 2d46cbb4d09f73d145bbe04192081958d4ea3288 Mon Sep 17 00:00:00 2001 From: Rusty Striker Date: Fri, 4 Jul 2025 12:39:55 +0300 Subject: [PATCH] some notes --- src/main.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main.rs b/src/main.rs index c385958..8c5e2c9 100644 --- a/src/main.rs +++ b/src/main.rs @@ -205,6 +205,7 @@ async fn get_asset(asset: axum::extract::Path) -> impl IntoResponse { (".jxl", "image/jxl"), ]; // check if file is a folder. if so, list it + // TODO: This should prob be moved into the websocket connection and into the game server, so players cant snoop around the files if let Ok(mut dir) = tokio::fs::read_dir(format!("assets/{}", asset.0)).await { let mut files = Vec::new();