stripe api

This commit is contained in:
Cipher Vance
2025-11-22 22:54:35 -06:00
parent a4a1a93567
commit 364b3a7dcb

View File

@@ -69,17 +69,17 @@ func setupRoutes(r *chi.Mux) {
// Public routes // Public routes
r.Get("/health", healthCheck) r.Get("/health", healthCheck)
// Auth routes // Auth routes - REMOVED /api/ prefix
authHandler := auth.NewHandler() authHandler := auth.NewHandler()
r.Post("/api/signup", authHandler.Signup) r.Post("/signup", authHandler.Signup)
r.Post("/api/login", authHandler.Login) r.Post("/login", authHandler.Login)
r.Post("/api/logout", authHandler.Logout) r.Post("/logout", authHandler.Logout)
r.Post("/api/password-reset/request", authHandler.RequestPasswordReset) r.Post("/password-reset/request", authHandler.RequestPasswordReset)
r.Post("/api/password-reset/confirm", authHandler.ConfirmPasswordReset) r.Post("/password-reset/confirm", authHandler.ConfirmPasswordReset)
// Protected routes // Protected routes - REMOVED /api/ prefix
authMiddleware := middleware.NewAuthMiddleware() authMiddleware := middleware.NewAuthMiddleware()
r.Route("/api/protected", func(r chi.Router) { r.Route("/protected", func(r chi.Router) {
r.Use(authMiddleware.ProtectedRoute) r.Use(authMiddleware.ProtectedRoute)
// User routes // User routes