mirror of
https://github.com/zhamao-robot/zhamao-framework.git
synced 2026-07-05 07:45:37 +08:00
20 lines
379 B
PHP
20 lines
379 B
PHP
|
|
<?php
|
|||
|
|
|
|||
|
|
declare(strict_types=1);
|
|||
|
|
|
|||
|
|
namespace Module\Example;
|
|||
|
|
|
|||
|
|
use ZM\Annotation\Http\Route;
|
|||
|
|
use ZM\Annotation\Middleware\Middleware;
|
|||
|
|
use ZM\Middleware\TimerMiddleware;
|
|||
|
|
|
|||
|
|
class Hello123
|
|||
|
|
{
|
|||
|
|
#[Route('/route', request_method: ['GET'])]
|
|||
|
|
#[Middleware(TimerMiddleware::class)]
|
|||
|
|
public function route()
|
|||
|
|
{
|
|||
|
|
return 'Hello Zhamao!This is the first 3.0 page!';
|
|||
|
|
}
|
|||
|
|
}
|