some notes
This commit is contained in:
parent
53d1d2f831
commit
2d46cbb4d0
1 changed files with 1 additions and 0 deletions
|
@ -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();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue