mirror of
https://github.com/niusmallnan/steve.git
synced 2025-06-29 16:06:56 +00:00
Register apply structs
This commit is contained in:
parent
6b2a9678f1
commit
c1ea7b9626
@ -21,6 +21,9 @@ import (
|
||||
|
||||
func Register(ctx context.Context, apiSchemas *types.APISchemas, cg proxy.ClientGetter, schemaFactory steveschema.Factory) {
|
||||
apiSchemas.InternalSchemas.TypeName("management.cattle.io.cluster", Cluster{})
|
||||
|
||||
apiSchemas.MustImportAndCustomize(&ApplyInput{}, nil)
|
||||
apiSchemas.MustImportAndCustomize(&ApplyOutput{}, nil)
|
||||
apiSchemas.MustImportAndCustomize(Cluster{}, func(schema *types.APISchema) {
|
||||
schema.CollectionMethods = []string{http.MethodGet}
|
||||
schema.ResourceMethods = []string{http.MethodGet}
|
||||
|
Loading…
Reference in New Issue
Block a user