<?php

use App\Domains\Ticket\Controllers\Scanner\TicketController;
use Illuminate\Support\Facades\Route;

Route::prefix('v1/scanner/tickets')
    ->middleware(['auth:sanctum', 'scanner.tenant'])
    ->group(function (): void {
        Route::get('/', [TicketController::class, 'index']);
        Route::get('{ticketUuid}', [TicketController::class, 'show'])
            ->whereUuid('ticketUuid');
        Route::post('{ticketUuid}/scan', [TicketController::class, 'scan'])
            ->whereUuid('ticketUuid');
    });
