Skip to content

Commit

Permalink
removed debugging router walk
Browse files Browse the repository at this point in the history
  • Loading branch information
ebauman committed Jun 7, 2023
1 parent 2e261f2 commit e81fe61
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import (
"context"
"crypto/tls"
"flag"
"fmt"
"github.com/hobbyfarm/gargantua/pkg/settingserver"
"github.com/hobbyfarm/gargantua/pkg/webhook/validation"
"os"
Expand Down Expand Up @@ -327,13 +326,6 @@ func main() {
validationEndpoints := webhookRouter.PathPrefix("/validation").Subrouter()
validation.RegisterRoutes(validationEndpoints)

webhookRouter.Walk(func(route *mux.Route, router *mux.Router, ancestors []*mux.Route) error {
tpl, err1 := route.GetPathTemplate()
met, err2 := route.GetMethods()
fmt.Println(tpl, err1, met, err2)
return nil
})

webhookPort := os.Getenv("WEBHOOK_PORT")
if webhookPort == "" {
webhookPort = "444"
Expand Down

0 comments on commit e81fe61

Please sign in to comment.