feat: add middleware (Adapter) type
This commit is contained in:
parent
f3127edde1
commit
87c15b91e5
|
@ -0,0 +1,6 @@
|
||||||
|
package api
|
||||||
|
|
||||||
|
import "net/http"
|
||||||
|
|
||||||
|
// Adapter to encapsulate incoming requests
|
||||||
|
type Adapter func(http.HandlerFunc) http.HandlerFunc
|
Loading…
Reference in New Issue