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();