feat: get handlers return object slices
This commit is contained in:
@ -19,7 +19,7 @@ type ResourceHandler interface {
|
||||
}
|
||||
|
||||
type GetHandler interface {
|
||||
Get(ctx context.Context, params params.Container) (any, error)
|
||||
Get(ctx context.Context, params params.Container) ([]any, error)
|
||||
}
|
||||
|
||||
type Verb string
|
||||
|
||||
@ -3,5 +3,5 @@ package interfaces
|
||||
import "io"
|
||||
|
||||
type Formatter interface {
|
||||
Format(object any) (io.Reader, error)
|
||||
Format(object []any) (io.Reader, error)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user