Api文档
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.

28 lines
578 B

1 year ago
<?php
namespace Plugins\ApiDoc\Controller;
use Hyperf\HttpServer\Annotation\Controller;
use Hyperf\HttpServer\Annotation\GetMapping;
use Hyperf\View\Render;
use Psr\Http\Message\ResponseInterface;
/**
* 文档控制器
*
* Class DocumentController
*/
#[Controller('admin/plugins/api-doc')]
class DocumentController
{
/**
* @param Render $render
*
* @return ResponseInterface
*/
#[GetMapping(path: 'view')]
public function view(Render $render): ResponseInterface
{
return $render->render("plugins.ApiDoc.Document.view");
}
}