cleaned up webhooks package
This commit is contained in:
@@ -94,6 +94,7 @@ func NewRouter(
|
||||
sq,
|
||||
).Trim("/api")
|
||||
|
||||
// TODO: group these into a single unifieds 'apis' object/package?
|
||||
auth_api.Routes(
|
||||
api.Group("/auth"),
|
||||
apiLogger.WithGroup("/auth"),
|
||||
@@ -110,17 +111,14 @@ func NewRouter(
|
||||
accts,
|
||||
unp.Group("/accounts"),
|
||||
)
|
||||
|
||||
// api webhooks (TODO: make a router for these)
|
||||
|
||||
webhooks.Webhooks(
|
||||
webhooks.Routes(
|
||||
api.Group("/webhooks"),
|
||||
logger.WithGroup("webhooks"),
|
||||
apiLogger.WithGroup("/webhooks"),
|
||||
rawEvents,
|
||||
etsy,
|
||||
webhooks.Config{
|
||||
Etsy: etsy_webhooks.Config{
|
||||
OAuthRedirectURIWithAcctIDParam: "/oauth/account/{acctID}/auth_code",
|
||||
OAuthRedirectURIWithAcctIDParam: "/oauth/accounts/:acctID/auth_code",
|
||||
},
|
||||
},
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user