12 lignes
202 o
Go
12 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)
|
||
|
})
|
||
|
}
|