diff --git a/src/main.rs b/src/main.rs index 6f26a18..033ed8d 100644 --- a/src/main.rs +++ b/src/main.rs @@ -195,7 +195,8 @@ async fn style() -> impl response::IntoResponse { async fn get_asset(asset: axum::extract::Path) -> impl IntoResponse { println!("Asset requested: {}", asset.0); let supported_file_types = [ - (".jpg", "image/jpeg"), (".jpeg", "image/jpeg"), (".png", "image/png") + (".jpg", "image/jpeg"), (".jpeg", "image/jpeg"), + (".png", "image/png"), (".jxl", "image/jxl"), ]; let mime = match supported_file_types.iter() .filter(|t| asset.0.ends_with(t.0))