Files
Malek TellissiandClaude Sonnet 4.6 e14baca7e0
Deploy / deploy (push) Successful in 15s
Add LOT API v1 endpoint with full batch details
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>
2026-09-12 16:43:48 +02:00

14 lines
449 B
PHP

<?php
use App\Http\Controllers\Api\LotController;
use App\Http\Controllers\ShopifyWebhookController;
use App\Http\Middleware\VerifyShopifyWebhook;
use Illuminate\Support\Facades\Route;
Route::get('/v1/{lot_number}', [LotController::class, 'show'])
->middleware('throttle:60,1')
->name('api.lot');
Route::post('/webhooks/shopify/orders-paid', [ShopifyWebhookController::class, 'ordersPaid'])
->middleware(VerifyShopifyWebhook::class);