feat: implement server tags management with Proxmox-style color generation and syncing

This commit is contained in:
2025-12-18 20:38:12 -05:00
parent b7547fd01b
commit bdd168d26d
6 changed files with 407 additions and 1 deletions

View File

@@ -1,6 +1,7 @@
<?php
use Paymenter\Extensions\Servers\Proxmox\Http\Controllers\ServerIconController;
use Paymenter\Extensions\Servers\Proxmox\Http\Controllers\ServerTagController;
use App\Http\Controllers\SocialLoginController;
use App\Http\Middleware\MustVerfiyEmail;
use App\Livewire\Auth;
@@ -19,6 +20,9 @@ use Illuminate\Support\Facades\Route;
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('/proxmox/tags/colors', [ServerTagController::class, 'colors']);
});
Route::get('/', Home::class)->name('home');