src/Leevel/Router/ResponseFactory.php
public function apiMethodNotAllowed(?string $message = null, ?string $text = null): ApiResponse
    {
        return $this->createApiResponse()->methodNotAllowed($message, $text);
    }
public function apiMethodNotAllowed(?string $message = null, ?string $text = null): ApiResponse
    {
        return $this->createApiResponse()->methodNotAllowed($message, $text);
    }
方法禁用
禁用请求中指定的方法: 405.

@param string $message
@param string $text

@return \Leevel\Http\ApiResponse