hyperf-chat/app/Controller/TestController.php

27 lines
471 B
PHP
Raw Normal View History

2021-05-24 19:03:27 +08:00
<?php
declare(strict_types=1);
namespace App\Controller;
use Hyperf\HttpServer\Annotation\Controller;
use Hyperf\HttpServer\Annotation\RequestMapping;
/**
* 测试相关控制器
* @Controller()
2021-05-25 18:20:55 +08:00
*
2021-05-24 19:03:27 +08:00
* @package App\Controller
*/
class TestController extends AbstractController
{
/**
2021-05-25 18:20:55 +08:00
* @RequestMapping(path="index", methods="get")
2021-05-24 19:03:27 +08:00
*/
public function index()
{
return $this->response->json([
'code' => 200
]);
}
}