feat: add middleware (Adapter) type

This commit is contained in:
Adrien Marquès 2021-04-18 16:49:24 +02:00
parent f3127edde1
commit 87c15b91e5
1 changed files with 6 additions and 0 deletions

6
api/adapter.go Normal file
View File

@ -0,0 +1,6 @@
package api
import "net/http"
// Adapter to encapsulate incoming requests
type Adapter func(http.HandlerFunc) http.HandlerFunc