chore: lots of changes
This commit is contained in:
18
src/Framework/Attributes/Route.php
Normal file
18
src/Framework/Attributes/Route.php
Normal file
@@ -0,0 +1,18 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace App\Framework\Attributes;
|
||||
|
||||
use Attribute;
|
||||
|
||||
#[Attribute(\Attribute::TARGET_METHOD, \Attribute::IS_REPEATABLE)]
|
||||
|
||||
class Route
|
||||
{
|
||||
public function __construct(
|
||||
public string $path,
|
||||
public string $method = 'GET',
|
||||
) {
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user