From b8dac4fc4d8bfb6cdd77f46c209a5f5edc09011d Mon Sep 17 00:00:00 2001 From: originalaidn <45371311+originalaidn@users.noreply.github.com> Date: Fri, 18 Oct 2024 18:19:33 +0200 Subject: [PATCH] Update web.php --- routes/web.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/routes/web.php b/routes/web.php index 0b57623..8588c82 100755 --- a/routes/web.php +++ b/routes/web.php @@ -117,8 +117,11 @@ Route::get('/rcon/{server_id?}', [RconController::class, 'index'])->middleware('superadmin')->name('rcon'); Route::post('/rcon/{server_id}', [RconController::class, 'execute'])->middleware('superadmin')->name('rcon.execute'); -Route::resource('vip', VIPController::class); -Route::post('vip/list', 'VIPController@getVIPsList')->name('vip.list'); +if(env('VIP') == 'Enabled') { + Route::resource('vip', VIPController::class); + Route::post('vip/list', 'VIPController@getVIPsList')->name('vip.list'); +} + use App\Http\Controllers\WeaponSkinController; Route::get('/weapons/skins', [WeaponSkinController::class, 'index'])->name('weapons.skins.index');