11 lignes
202 o
Go
11 lignes
202 o
Go
package middlewares
|
|
|
|
import (
|
|
"net/http"
|
|
)
|
|
|
|
func SentryMiddleware(next http.Handler) http.Handler {
|
|
return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
|
|
next.ServeHTTP(w, r)
|
|
})
|
|
}
|