feat(ticket): add cancel ticket functionality and corresponding tests

This commit is contained in:
2026-09-10 16:28:45 -03:00
parent de259f4286
commit beb5d18b29
4 changed files with 57 additions and 0 deletions

View File

@@ -9,6 +9,10 @@ Route::prefix('v1/adminapp/tenant')
Route::get('tickets', [TicketController::class, 'index'])
->middleware('tenant.menu:adminapp.tickets')
->name('adminapp.tickets.index');
Route::post('tickets/{ticket}/cancel', [TicketController::class, 'cancel'])
->whereNumber('ticket')
->middleware('tenant.menu:adminapp.tickets')
->name('adminapp.tickets.cancel');
Route::get('tickets/pdf', [TicketController::class, 'downloadPdf'])
->middleware('tenant.menu:adminapp.tickets')
->name('adminapp.tickets.pdf');