feature: add http middleware capability #18

Merged
xdrm-brackets merged 5 commits from feature/middleware into 0.3.0 2021-04-18 16:08:12 +00:00
1 changed files with 6 additions and 0 deletions
Showing only changes of commit 87c15b91e5 - Show all commits

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