<?php

use App\Domains\Desfile\Controllers\EntryController;
use Illuminate\Support\Facades\Route;

Route::prefix('v1/adminapp/tenant/desfile')
    ->middleware(['auth:sanctum', 'adminapp.tenant', 'tenant.menu:adminapp.desfile.entradas'])
    ->group(function (): void {
        Route::get('entries', [EntryController::class, 'show'])
            ->name('adminapp.desfile.entries.show');
        Route::put('entries', [EntryController::class, 'update'])
            ->name('adminapp.desfile.entries.update');
        Route::post('entries/image', [EntryController::class, 'replaceImage'])
            ->name('adminapp.desfile.entries.image.replace');
        Route::patch('entries/image', [EntryController::class, 'updateImage'])
            ->name('adminapp.desfile.entries.image.update');
    });
