summaryrefslogtreecommitdiff
path: root/src/ui/routes/path.rs
blob: a387552ff638bfee8b04e4d2886ca793e809252e (plain)
1
2
3
4
5
6
7
8
9
pub mod get {
    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)
    }
}