Adds index.html

This commit is contained in:
2025-10-07 17:15:40 +02:00
parent 7f1af014ae
commit 8e8a51c3a0
4 changed files with 162 additions and 10 deletions

View File

@@ -78,7 +78,7 @@ pub async fn get(id: &str, meta: ReqMeta, state: &State<AppState>) -> Result<Nam
}
}
NamedFile::open(Path::new(state.image_path.as_str()))
NamedFile::open(Path::new(state.static_dir.as_str()).join("image.png"))
.await
.map_err(|_| Status::InternalServerError)
}