refactor: remove ServerIconController and update related views for server icon handling

This commit is contained in:
2025-12-06 10:38:34 -05:00
parent e6eaae6ffe
commit e0ee624589
6 changed files with 31 additions and 74 deletions

View File

@@ -1,12 +1,6 @@
// Server icon API (AJAX, not Livewire)
use App\Http\Controllers\ServerIconController;
Route::middleware(['web', 'auth'])->group(function () {
Route::get('/proxmox/server/{server}/icon', [ServerIconController::class, 'show']);
Route::post('/proxmox/server/{server}/icon', [ServerIconController::class, 'update']);
});
<?php
use Paymenter\Extensions\Servers\Proxmox\Http\Controllers\ServerIconController;
use App\Http\Controllers\SocialLoginController;
use App\Http\Middleware\MustVerfiyEmail;
use App\Livewire\Auth;
@@ -21,6 +15,12 @@ use App\Livewire\Tickets;
use Illuminate\Foundation\Auth\EmailVerificationRequest;
use Illuminate\Support\Facades\Route;
// Server icon API (AJAX, not Livewire)
Route::middleware(['web', 'auth'])->group(function () {
Route::get('/proxmox/server/{server}/icon', [ServerIconController::class, 'show']);
Route::post('/proxmox/server/{server}/icon', [ServerIconController::class, 'update']);
});
Route::get('/', Home::class)->name('home');
// Destroy the session and log out the user.