summaryrefslogtreecommitdiff
path: root/src/ui/handlers/asset.rs
blob: 1d5b8beede94f425032357d6b48eb22c63de6707 (plain)
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)
}