1 2 3 4 5 6 7
use axum::extract::Path; use crate::ui::assets::{Asset, Assets, Error}; pub async fn handler(Path(path): Path<String>) -> Result<Asset, Error> { Assets::load(path) }