From 8422d9f572b3d2584e886d8536b51a597eb80cf2 Mon Sep 17 00:00:00 2001 From: Serena Zamarripa Date: Thu, 13 Jul 2023 15:48:28 -0500 Subject: [PATCH] Fix hooks error --- routes.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/routes.go b/routes.go index 5877ce84..aad05ca7 100644 --- a/routes.go +++ b/routes.go @@ -244,7 +244,7 @@ func handleWebhookRoutes(in handleWebhookRoutesIn) error { fmt.Fprintf(os.Stderr, "Failed to initialize v2 endpoint middleware: %v\n", err) return err } - in.APIRouter.Handle("/hook", in.AuthChain.Then(fixV2Middleware(candlelight.EchoFirstTraceNodeInfo(in.Tracing.Propagator(), false)(in.GetAllWebhooksHandler)))).Methods(http.MethodPost) + in.APIRouter.Handle("/hook", in.AuthChain.Then(fixV2Middleware(candlelight.EchoFirstTraceNodeInfo(in.Tracing.Propagator(), false)(in.AddWebhookHandler)))).Methods(http.MethodPost) in.APIRouter.Handle("/hooks", in.AuthChain.Then(candlelight.EchoFirstTraceNodeInfo(in.Tracing.Propagator(), false)(in.GetAllWebhooksHandler))) } return nil