Files
server/shared/lib/Routing/Attributes/AuthenticatedRoute.php
2025-12-21 10:09:54 -05:00

17 lines
370 B
PHP

<?php
namespace KTXF\Routing\Attributes;
use Attribute;
#[Attribute(Attribute::TARGET_METHOD | Attribute::TARGET_CLASS)]
class AuthenticatedRoute
{
public function __construct(
public readonly string $path,
public readonly string $name,
public readonly array $methods = ['GET'],
public readonly array $permissions = [],
) {}
}