Chockfull

This commit is contained in:
KS Jannette
2026-03-28 11:10:25 -04:00
parent 288092e4b4
commit 615dd1dddc
6 changed files with 178 additions and 70 deletions

View File

@@ -82,6 +82,9 @@ func main() {
// Stripe webhook (public — called by Stripe, not authenticated)
mux.HandleFunc("POST "+b+"/stripe/webhook", stripeHandler.HandleWebhook)
// Onboarding checkout (public — account doesn't exist yet)
mux.HandleFunc("POST "+b+"/stripe/create-onboarding-checkout", stripeHandler.CreateOnboardingCheckout)
// Stripe routes (auth required, NO subscription required)
mux.Handle("POST "+b+"/stripe/create-checkout-session",
authenticate(http.HandlerFunc(stripeHandler.CreateCheckoutSession)))