feat: add GymController and gym routes

This commit is contained in:
Doar Mihai
2026-06-28 16:45:24 +03:00
parent 2b506c0086
commit 2941426c4e
2 changed files with 58 additions and 0 deletions
+7
View File
@@ -3,6 +3,7 @@
use App\Http\Controllers\Game\CharacterController;
use App\Http\Controllers\Game\CrimeController;
use App\Http\Controllers\Game\DashboardController;
use App\Http\Controllers\Game\GymController;
use App\Http\Controllers\Game\InventoryController;
use Illuminate\Support\Facades\Route;
@@ -56,6 +57,12 @@ Route::middleware(['auth', 'verify.character'])->group(function () {
Route::post('/{inventory}/use', [InventoryController::class, 'use'])->name('use');
Route::post('/{inventory}/drop', [InventoryController::class, 'drop'])->name('drop');
});
// Gym routes
Route::prefix('game/gym')->name('game.gym.')->group(function () {
Route::get('/', [GymController::class, 'index'])->name('index');
Route::post('/train', [GymController::class, 'train'])->name('train')->middleware(['check.energy:gym']);
});
});
// Hospital route (for when character is in hospital)