1
0
mirror of https://github.com/rancher/steve.git synced 2025-04-27 19:05:09 +00:00
steve/pkg/schemaserver/subscribe/register.go

17 lines
378 B
Go
Raw Normal View History

2020-01-31 05:37:59 +00:00
package subscribe
import (
"net/http"
"github.com/rancher/steve/pkg/schemaserver/types"
)
func Register(schemas *types.APISchemas) {
schemas.MustImportAndCustomize(Subscribe{}, func(schema *types.APISchema) {
schema.CollectionMethods = []string{http.MethodGet}
schema.ResourceMethods = []string{}
schema.ListHandler = Handler
schema.PluralName = "subscribe"
})
}