refactor: clean up presentation layer — AppState grouping, multipart extractor, thin handlers

This commit is contained in:
2026-05-31 06:14:19 +02:00
parent 34b231a8f6
commit 2d9dd2c2d0
14 changed files with 199 additions and 258 deletions

View File

@@ -17,13 +17,7 @@ async fn returns_asset_with_resolved_metadata() {
checksum: Checksum::new("a".repeat(64)).unwrap(),
};
let owner = SystemId::new();
let asset = Asset::new(
source,
AssetType::Image,
"image/jpeg",
1024,
owner,
);
let asset = Asset::new(source, AssetType::Image, "image/jpeg", 1024, owner);
asset_repo.save(&asset).await.unwrap();
// Add exif layer

View File

@@ -77,7 +77,6 @@ impl Harness {
}
}
#[tokio::test]
async fn ingests_successfully() {
let h = Harness::new();