This commit is contained in:
seb
2026-08-01 02:08:39 +02:00
parent 6d720d34ed
commit 4ea593a0c8
7 changed files with 211 additions and 33 deletions

View File

@@ -10,10 +10,11 @@ export function primaryPhoto(article) {
return photos[0] ?? null;
}
/** Map POST /api/article/:sku/image → photos[] entry shape. */
/** Map POST /api/article/:sku/image → photos[] entry shape (GET article). */
export function photoFromUploadedImage(image) {
return {
sort: image.sort,
fullHash: image.fullHash,
thumbW: image.thumb.w,
thumbH: image.thumb.h,
thumbHash: image.thumbHash,