updated frontend

This commit is contained in:
magdo
2026-04-01 22:01:36 +02:00
parent 91e48d2178
commit 3ee9c03b85
42 changed files with 1498 additions and 23 deletions
+7
View File
@@ -62,8 +62,15 @@ Cookie is HTTP-only and set with `sameSite=lax`.
- `GET /api/health`
- `GET /api/shop/categories`
- `GET /api/shop/products`
- `GET /api/shop/products/:productId`
- `POST /api/shop/products` (`multipart/form-data` is supported, field name: `image`)
- `POST /api/shop/products/:productId/image` (`multipart/form-data`, field name: `image`)
- `POST /api/shop/orders`
Uploaded files are stored in `images/uploads` and are served at `/images/uploads/<filename>`.
Product responses include `image_url` with an absolute URL when an image exists.
Order payload:
```json