mirror of
https://github.com/rancher/steve.git
synced 2025-04-27 19:05:09 +00:00
17 lines
378 B
Go
17 lines
378 B
Go
|
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"
|
||
|
})
|
||
|
}
|