浏览代码

support hidden for endpoint

Yeuoly 7 月之前
父节点
当前提交
6f8989852f
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      internal/types/entities/plugin_entities/endpoint_declaration.go

+ 1 - 0
internal/types/entities/plugin_entities/endpoint_declaration.go

@@ -40,6 +40,7 @@ func init() {
 type EndpointDeclaration struct {
 	Path   string         `json:"path" yaml:"path" validate:"required"`
 	Method EndpointMethod `json:"method" yaml:"method" validate:"required,is_available_endpoint_method"`
+	Hidden bool           `json:"hidden" yaml:"hidden" validate:"omitempty"`
 }
 
 type EndpointProviderDeclaration struct {