Add LOT API v1 endpoint with full batch details
Deploy / deploy (push) Successful in 15s

Route changed to /api/v1/{lot_number}. LotResource now includes
packing details, units_produced, quantity_g and recipe version.
CORS config added for public API access. README documents the
endpoint, example response and subdomain setup instructions.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Malek TellissiandClaude Sonnet 4.6 committed 2026-09-12 16:43:48 +02:00
1 parent 269570c7d6
commit e14baca7e0
5 files changed
+110 -6

No files matched your search

+19
View File
@@ -0,0 +1,19 @@
<?php
return [
'paths' => ['api/*'],
'allowed_methods' => ['GET'],
'allowed_origins' => ['*'],
'allowed_origins_patterns' => [],
'allowed_headers' => ['Content-Type', 'Accept'],
'exposed_headers' => [],
'max_age' => 86400,
'supports_credentials' => false,
];