Initial Version
This commit is contained in:
15
shared/lib/Routing/Attributes/AnonymousRoute.php
Normal file
15
shared/lib/Routing/Attributes/AnonymousRoute.php
Normal file
@@ -0,0 +1,15 @@
|
||||
<?php
|
||||
|
||||
namespace KTXF\Routing\Attributes;
|
||||
|
||||
use Attribute;
|
||||
|
||||
#[Attribute(Attribute::TARGET_METHOD | Attribute::TARGET_CLASS)]
|
||||
class AnonymousRoute
|
||||
{
|
||||
public function __construct(
|
||||
public readonly string $path,
|
||||
public readonly string $name,
|
||||
public readonly array $methods = ['GET'],
|
||||
) {}
|
||||
}
|
||||
Reference in New Issue
Block a user