diff options
Diffstat (limited to 'src/ui/routes/path.rs')
| -rw-r--r-- | src/ui/routes/path.rs | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/ui/routes/path.rs b/src/ui/routes/path.rs index 2e9a657..a387552 100644 --- a/src/ui/routes/path.rs +++ b/src/ui/routes/path.rs @@ -1,12 +1,9 @@ pub mod get { use axum::extract::Path; - use crate::ui::{ - assets::{Asset, Assets}, - error::NotFound, - }; + use crate::ui::assets::{Asset, Assets, Error}; - pub async fn handler(Path(path): Path<String>) -> Result<Asset, NotFound<String>> { + pub async fn handler(Path(path): Path<String>) -> Result<Asset, Error> { Assets::load(path) } } |
