Exemplo n.º 1
0
func (endpoint *HTMLEndpoint) Middlewares() []middleware.Middleware {
	return []middleware.Middleware{respond.NewAcceptFilterMiddleware(`text/html`)}
}
Exemplo n.º 2
0
func (endpoint *JSONEndpoint) Middlewares() []middleware.Middleware {
	return []middleware.Middleware{respond.NewAcceptFilterMiddleware(`application/json`)}
}