You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
423 B
23 lines
423 B
<?php
|
|
|
|
declare(strict_types=1);
|
|
namespace App\Controller;
|
|
|
|
|
|
use Hyperf\HttpServer\Contract\RequestInterface;
|
|
use Hyperf\HttpServer\Annotation\AutoController;
|
|
|
|
/**
|
|
* @AutoController()
|
|
* Class TestController
|
|
* @package App\Controller
|
|
*/
|
|
class TestController extends AbstractController
|
|
{
|
|
|
|
public function index(RequestInterface $request)
|
|
{
|
|
$id = $request->input('id',2);
|
|
return (string)$id;
|
|
}
|
|
}
|