<?php

namespace App\Modules\Admin\SystemHealth\Controllers;

use App\Http\Controllers\Controller;
use App\Modules\Admin\SystemHealth\Services\SystemHealthService;
use Illuminate\View\View;

class SystemHealthPageController extends Controller
{
    public function __construct(
        private readonly SystemHealthService $health,
    ) {}

    public function index(): View
    {
        return view('pages.admin.system_health.index', $this->health->snapshot());
    }
}
