Description

MiddlewareSimple is an adapter type that makes it easy to write a Middleware with a simple function. eg: api.Use(rest.MiddlewareSimple(func(h HandlerFunc) Handlerfunc { ... }))

MiddlewareSimple is referenced in 1 repository

github.com/ant0ine/go-json-rest