<?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\PublicPageHealthService;

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