some notes

This commit is contained in:
Rusty Striker 2025-07-04 12:39:55 +03:00
parent 53d1d2f831
commit 2d46cbb4d0
Signed by: RustyStriker
GPG key ID: 87E4D691632DFF15

View file

@ -205,6 +205,7 @@ async fn get_asset(asset: axum::extract::Path<String>) -> 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();