#Evangelist-webhook-secrets

1 messages · Page 1 of 1 (latest)

manic torrent
#

Unfortunately not. Why are many endpoints that point to the same place necessary?

cinder agate
#

We don't want one controller method handling a possible numerous amount of events, e.g: 1 controller with a large switch case of 10-20 events. It makes it easier to unit test and keeps track of knowing exactly which method will receive which event

manic torrent
#

So @cedar ibex has their suggestion of how they handle that. It is up to you for what makes most sense for running/testing your integration

#

Though it is a common pattern to determine what an event is in the function where you receive the event and dispatch that to functions based on what event you recieved

#

That would also likely be easier to test