mirror of
https://github.com/openziti/zrok.git
synced 2025-08-15 18:42:32 +02:00
basic global bandwidth enforcement testing tweaks (no clases) (#606)
This commit is contained in:
@ -13,7 +13,6 @@ func Middleware(handler http.Handler, healthCheck func(w http.ResponseWriter, r
|
||||
logrus.Infof("building")
|
||||
return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
|
||||
if strings.HasPrefix(r.URL.Path, "/api/v1") {
|
||||
logrus.Debugf("directing '%v' to api handler", r.URL.Path)
|
||||
handler.ServeHTTP(w, r)
|
||||
return
|
||||
}
|
||||
@ -22,8 +21,6 @@ func Middleware(handler http.Handler, healthCheck func(w http.ResponseWriter, r
|
||||
return
|
||||
}
|
||||
|
||||
logrus.Debugf("directing '%v' to static handler", r.URL.Path)
|
||||
|
||||
staticPath := "build"
|
||||
indexPath := "index.html"
|
||||
|
||||
|
Reference in New Issue
Block a user