blob: 948d6d61f772869327163ad09f57d635ab6ba687 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
use axum::extract::Path;
use axum_extra::TypedHeader;
use headers::IfNoneMatch;
use crate::ui::assets::{Error, Response};
pub async fn handler(
Path(path): Path<String>,
TypedHeader(if_none_match): TypedHeader<IfNoneMatch>,
) -> Result<Response, Error> {
Response::load(&path, &if_none_match)
}
|