This commit is contained in:
seb
2026-08-01 01:36:44 +02:00
parent 9582370b0b
commit 6d720d34ed
6 changed files with 79 additions and 5 deletions

View File

@@ -180,7 +180,7 @@ export const article = {
/**
* POST /api/article/:sku/image
* Body: raw AVIF bytes (Content-Type: image/avif, max 1000×1000, prepared client-side via WASM)
* → 201 { article }
* → 201 { image: { picId, sort, full, thumb, hash, thumbHash } }
*/
uploadImage(sku, file) {
return httpBinary(`/api/article/${encodeURIComponent(sku)}/image`, {