mini\Controller\Attributes\GET
class
Documentation
GET route attribute
Convenience attribute for GET routes.
Example:
#[GET('/')]
public function index(): ResponseInterface
{
return $this->respond(['users' => []]);
}
#[GET('/{id}/')]
public function show(int $id): ResponseInterface
{
$user = table(User::class)->find($id);
return $this->respond($user);
}
Inheritance
Extends: mini\Controller\Attributes\Route
Properties (2)
public
string $path
public
?
string $method
Methods (1)
Documentation missing