fix: update Proxmox server tag routes to use API prefix

This commit is contained in:
2025-12-18 21:15:50 -05:00
parent 5fb364ff7e
commit 0b67a9dc99
2 changed files with 4 additions and 4 deletions

View File

@@ -16,12 +16,12 @@ use App\Livewire\Tickets;
use Illuminate\Foundation\Auth\EmailVerificationRequest;
use Illuminate\Support\Facades\Route;
// Server icon API (AJAX, not Livewire)
// Server icon/tag 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('/proxmox/server/{server}/tags', [ServerTagController::class, 'show']);
Route::post('/proxmox/server/{server}/tags', [ServerTagController::class, 'update']);
Route::get('/api/proxmox/tags/{server}', [ServerTagController::class, 'show']);
Route::post('/api/proxmox/tags/{server}', [ServerTagController::class, 'update']);
Route::get('/proxmox/tags/colors', [ServerTagController::class, 'colors']);
});