feat: harden admin auth and ticket workflows

- add rotating admin refresh tokens and password gates\n- expand ticket galleries, exports, and client resources\n- improve IP allocation auditing and dashboard data\n- enforce encrypted client access tokens on public routes
This commit is contained in:
baodev0
2026-10-16 17:00:55 +07:00
parent 0cdf224309
commit 0b08689ea4
52 changed files with 1421 additions and 118 deletions
@@ -4,6 +4,7 @@ namespace App\Http\Controllers\Api\Admin\IpPool\Concerns;
use App\Models\IpPool;
use App\Models\ModuleNetwork;
use App\Services\IpPool\IpPoolDashboard;
use Illuminate\Http\JsonResponse;
use Illuminate\Support\Facades\DB;
@@ -33,6 +34,11 @@ trait ReadsIpPoolUsage
return response()->json(['error' => false, 'data' => $used]);
}
public function dashboard(IpPoolDashboard $dashboard): JsonResponse
{
return response()->json(['error' => false, 'data' => $dashboard->build()]);
}
public function networks(): JsonResponse
{
$networks = ModuleNetwork::select(['id', 'name', 'type', 'network', 'module_host_id'])