webapp
Some checks failed
Docker Build and Publish / publish (push) Failing after 1m33s

This commit is contained in:
Eugene Howe
2026-02-17 09:47:30 -05:00
parent af09672ee3
commit b0957bfa49
102 changed files with 4213 additions and 378 deletions

View File

@@ -0,0 +1,15 @@
package middleware
import (
"net/http"
"github.com/go-chi/chi/v5/middleware"
)
func AddRequestIDHeaderMiddleware(next http.Handler) http.Handler {
fn := func(w http.ResponseWriter, r *http.Request) {
w.Header().Set(middleware.RequestIDHeader, middleware.GetReqID(r.Context()))
next.ServeHTTP(w, r)
}
return http.HandlerFunc(fn)
}