// Decorators returns the trim.Decorators applied to the Compare's // trim.Handler. func (resource Compare) Decorators() []trim.Decorator { allowDecorator := decorators.AllowDecorator([]string{"GET"}) return []trim.Decorator{allowDecorator} }
// Decorators returns all of the trim.Decorators applied to the Agents' Handler. func (a *Agents) Decorators() []trim.Decorator { allowDecorator := decorators.AllowDecorator([]string{"GET"}) return []trim.Decorator{allowDecorator} }