Skip to content

Commit

Permalink
Merge pull request #433 from xmidt-org/fixWebhooks
Browse files Browse the repository at this point in the history
Fix hooks error introduced in last version
  • Loading branch information
renaz6 authored Jul 13, 2023
2 parents b488730 + 9d523d9 commit 06c3c97
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion routes.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 06c3c97

Please sign in to comment.