fix: change HttpMiddlewareFunc to not have a variable name

This commit is contained in:
Derrick Hammer 2024-01-22 17:03:54 -05:00
parent 6402410d75
commit 2020a9f1d1
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 1 additions and 1 deletions

View File

@ -7,7 +7,7 @@ import (
)
type JapeMiddlewareFunc func(jape.Handler) jape.Handler
type HttpMiddlewareFunc func(next http.Handler) http.Handler
type HttpMiddlewareFunc func(http.Handler) http.Handler
func AdaptMiddleware(mid func(http.Handler) http.Handler) JapeMiddlewareFunc {
return jape.Adapt(func(h http.Handler) http.Handler {