<?php

declare(strict_types=1);

namespace Maestro\Core\Http\Controllers\Superadmin;

use Illuminate\Http\JsonResponse;
use Maestro\Core\Http\Controllers\Controller;
use Maestro\Core\Services\InstallationHealthService;

class InstallationHealthController extends Controller
{
    public function __invoke(InstallationHealthService $health): JsonResponse
    {
        return response()->json(['data' => $health->report()]);
    }
}
