From 3fdef8b833f1555228c535837e68efe182a83174 Mon Sep 17 00:00:00 2001 From: Rusty Striker Date: Fri, 20 Jun 2025 17:11:09 +0300 Subject: [PATCH] add jpeg xl mime type to get_asset --- src/main.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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))