Skip to content

Open-source event management and ticket selling platform — perfect for concerts, conferences, and everything in between 🎟️ If you find this project helpful, please consider giving us a star ⭐️

452 B
Raw Blame
<?php

namespace HiEvents\Http\Actions\ApiReference;

use HiEvents\Http\Actions\BaseAction;
use HiEvents\OpenApi\IntegrationApiReference;
use Illuminate\Http\JsonResponse;

class GetApiReferenceAction extends BaseAction
{
    public function __construct(
        private readonly IntegrationApiReference $reference,
    ) {}

    public function __invoke(): JsonResponse
    {
        return $this->jsonResponse($this->reference->published());
    }
}