1
0
Fork 0

feat(products): expose thumbnail URL

This commit is contained in:
Henrik Hautakoski 2026-04-29 21:41:58 +02:00
parent 7d96e8f0f9
commit 97d5614397

View file

@ -24,6 +24,7 @@ class ProductResource extends JsonResource
'sku' => $this->resource->sku, 'sku' => $this->resource->sku,
'short_description' => $this->resource->short_description, 'short_description' => $this->resource->short_description,
'description' => $this->resource->description, 'description' => $this->resource->description,
'thumbnail_url' => $this->resource->thumbnail_path ?? null,
'price' => $this->resource->price, 'price' => $this->resource->price,
'stock_quantity' => $this->resource->stock_quantity, 'stock_quantity' => $this->resource->stock_quantity,
'active' => $this->resource->active, 'active' => $this->resource->active,