polycule-connect/polyculeconnect/middlewares/middlewarechain.go
Melora Hugues 20fde2335e
All checks were successful
continuous-integration/drone/push Build is passing
Improve response logger and fix '/' route
2023-10-15 17:49:33 +02:00

14 lines
201 B
Go

package middlewares
import (
"net/http"
"github.com/sirupsen/logrus"
)
func WithLogger(handler http.Handler, l *logrus.Logger) http.Handler {
return &LoggerMiddleware{
l: l,
h: handler,
}
}