From a3c45c5efc5467a0c582e5e7ebf0e51133681ade Mon Sep 17 00:00:00 2001 From: Juan Felipe Zapata Moreno Date: Wed, 31 Dec 2025 13:49:18 -0600 Subject: [PATCH] fix: rutas del corte de caja --- .../{ => App}/CashRegisterController.php | 0 routes/api.php | 13 +++++++------ 2 files changed, 7 insertions(+), 6 deletions(-) rename app/Http/Controllers/{ => App}/CashRegisterController.php (100%) diff --git a/app/Http/Controllers/CashRegisterController.php b/app/Http/Controllers/App/CashRegisterController.php similarity index 100% rename from app/Http/Controllers/CashRegisterController.php rename to app/Http/Controllers/App/CashRegisterController.php diff --git a/routes/api.php b/routes/api.php index 33c1b5b..4c7bbda 100644 --- a/routes/api.php +++ b/routes/api.php @@ -39,12 +39,13 @@ Route::put('/sales/{sale}/cancel', [SaleController::class, 'cancel']); // Rutas de caja - Route::get('/', [CashRegisterController::class, 'index']); - Route::get('/current', [CashRegisterController::class, 'current']); - Route::get('/{register}', [CashRegisterController::class, 'show']); - Route::post('/open', [CashRegisterController::class, 'open']); - Route::put('/{register}/close', [CashRegisterController::class, 'close']); - + Route::prefix('cash-registers')->group(function () { + Route::get('/', [CashRegisterController::class, 'index']); + Route::get('/current', [CashRegisterController::class, 'current']); + Route::get('/{register}', [CashRegisterController::class, 'show']); + Route::post('/open', [CashRegisterController::class, 'open']); + Route::put('/{register}/close', [CashRegisterController::class, 'close']); + }); }); /** Rutas públicas */