cleaned up webhooks package

This commit is contained in:
2026-01-24 12:47:54 -07:00
parent ff231897df
commit d6d0bf1b4c
5 changed files with 13 additions and 15 deletions
+4 -6
View File
@@ -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",
},
},
)