package middlewares import ( "net/http" "gitea.konchin.com/go2025/backend/tracing" "github.com/uptrace/bunrouter" ) func AccessLog(next bunrouter.HandlerFunc) bunrouter.HandlerFunc { return func(w http.ResponseWriter, req bunrouter.Request) error { tracing.Logger.Ctx(req.Context()). Info(req.Method + " " + req.Params().Route()) return next(w, req) } }