Skip to content

Commit

Permalink
Merge pull request #80 from SkynetLabs/ivo/stripe_endpoints
Browse files Browse the repository at this point in the history
Stripe Endpoints
  • Loading branch information
Christopher Schinnerl authored Apr 12, 2022
2 parents b69409d + 1e27ef5 commit 6a2cab8
Show file tree
Hide file tree
Showing 7 changed files with 440 additions and 131 deletions.
4 changes: 3 additions & 1 deletion api/routes.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,10 @@ func (api *API) buildHTTPRoutes() {
api.staticRouter.POST("/user/recover/request", api.WithDBSession(api.noAuth(api.userRecoverRequestPOST)))
api.staticRouter.POST("/user/recover", api.WithDBSession(api.noAuth(api.userRecoverPOST)))

api.staticRouter.POST("/stripe/webhook", api.WithDBSession(api.noAuth(api.stripeWebhookPOST)))
api.staticRouter.POST("/stripe/billing", api.WithDBSession(api.withAuth(api.stripeBillingPOST, false)))
api.staticRouter.POST("/stripe/checkout", api.WithDBSession(api.withAuth(api.stripeCheckoutPOST, false)))
api.staticRouter.GET("/stripe/prices", api.noAuth(api.stripePricesGET))
api.staticRouter.POST("/stripe/webhook", api.WithDBSession(api.noAuth(api.stripeWebhookPOST)))

api.staticRouter.GET("/.well-known/jwks.json", api.noAuth(api.wellKnownJWKSGET))

Expand Down
Loading

0 comments on commit 6a2cab8

Please sign in to comment.