feat(events): expose published events to storefront

This commit is contained in:
2026-09-18 14:33:28 -03:00
parent 8d2250d247
commit f6e8716218
5 changed files with 110 additions and 0 deletions

View File

@@ -1,10 +1,16 @@
<?php
use App\Domains\Ticketing\Event\Controllers\EventDateNoticeController;
use App\Domains\Ticketing\Event\Controllers\PublicEventController;
use Illuminate\Support\Facades\Route;
require __DIR__.'/adminapp.php';
Route::prefix('tenants/{tenant:codigo}')->group(function (): void {
Route::get('events', [PublicEventController::class, 'index']);
Route::get('events/{event}', [PublicEventController::class, 'show']);
});
Route::middleware('auth:sanctum')->post(
'tenants/{tenant:codigo}/event-date-notices/claim',
[EventDateNoticeController::class, 'claim'],