一个域名部署项目

This commit is contained in:
zhang zhuo 2025-10-24 17:44:29 +08:00
parent 118832c909
commit 6b01b51450
3 changed files with 3 additions and 1 deletions

View File

@ -24,6 +24,7 @@ use function Hyperf\Config\config;
use Hyperf\Swagger\Annotation as SA;
#[Controller(prefix: "admin")]
#[SA\HyperfServer('admin')]
class Login extends Base
{
#[GetMapping(path: "captcha")]

View File

@ -61,6 +61,7 @@ return [
'document_root' => BASE_PATH . '/static',
'enable_static_handler' => true,
'http_index_files' => ['index.html'],
],
'callbacks' => [
Event::ON_BEFORE_START => [Hyperf\Framework\Bootstrap\ServerStartCallback::class, 'beforeStart'],

View File

@ -7,7 +7,7 @@ use function Hyperf\Support\env;
return [
'enable' => true,
'port' => (int)env("SWAGGER_PORT", 9500),
'json_dir' => BASE_PATH . '/static/swagger/json',
'json_dir' => BASE_PATH . '/static/swagger',
'html' => <<<'HTML'
<!DOCTYPE html>
<html lang="en">