separated logger middleware

This commit is contained in:
2026-01-11 17:05:20 -07:00
parent 9de51c3925
commit 85ccace24f
5 changed files with 124 additions and 84 deletions
+5 -1
View File
@@ -4,7 +4,11 @@ import (
"net/http"
)
type HandlerFunc = func(r *http.Request) (Response, error)
type (
HandlerFunc = func(r *http.Request) (Response, error)
Middleware = func(HandlerFunc) HandlerFunc
)
func Handler(f HandlerFunc) http.HandlerFunc {
return func(w http.ResponseWriter, r *http.Request) {