initial page
This commit is contained in:
11
middlewares/combine.go
Normal file
11
middlewares/combine.go
Normal file
@@ -0,0 +1,11 @@
|
||||
package middlewares
|
||||
|
||||
import "net/http"
|
||||
|
||||
func Combine(nexts ...http.Handler) http.Handler {
|
||||
return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
|
||||
for _, next := range nexts {
|
||||
next.ServeHTTP(w, r)
|
||||
}
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user