1
0
mirror of https://github.com/rancher/steve.git synced 2025-09-21 11:28:11 +00:00

Add virtual clusters resource

This commit is contained in:
Darren Shepherd
2020-05-30 21:45:11 -07:00
parent fbf6e18a30
commit d3ce9c1739
3 changed files with 103 additions and 1 deletions

View File

@@ -19,7 +19,6 @@ func Register(schemas *types.APISchemas, cg proxy.ClientGetter) {
schemas.InternalSchemas.TypeName("userpreference", UserPreference{})
schemas.MustImportAndCustomize(UserPreference{}, func(schema *types.APISchema) {
schema.CollectionMethods = []string{http.MethodGet}
schema.ResourceMethods = []string{http.MethodGet}
schema.ResourceMethods = []string{http.MethodGet, http.MethodPut, http.MethodDelete}
schema.Store = New(cg)
})