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>
20 lines
299 B
PHP
20 lines
299 B
PHP
<?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,
|
|
];
|