cleaned up webhooks package
This commit is contained in:
@@ -15,26 +15,26 @@ type Config struct {
|
||||
Etsy etsy.Config
|
||||
}
|
||||
|
||||
func Webhooks(
|
||||
func Routes(
|
||||
r *gin.RouterGroup,
|
||||
logger *logging.Logger,
|
||||
eventsDB *raw_events.Store,
|
||||
etsyPlatform *etsy_platform.Platform,
|
||||
cfg Config,
|
||||
) {
|
||||
etsy.Webhooks(
|
||||
etsy.Routes(
|
||||
r.Group("/etsy"),
|
||||
logger.WithGroup("etsy"),
|
||||
eventsDB,
|
||||
etsyPlatform,
|
||||
cfg.Etsy,
|
||||
)
|
||||
tiktok.Webhooks(
|
||||
tiktok.Routes(
|
||||
r.Group("/tiktok"),
|
||||
logger.WithGroup("tiktok"),
|
||||
eventsDB,
|
||||
)
|
||||
wix.Webhooks(
|
||||
wix.Routes(
|
||||
r.Group("/wix"),
|
||||
logger.WithGroup("wix"),
|
||||
eventsDB,
|
||||
|
||||
Reference in New Issue
Block a user