From ace3b333442d23bfa64f154fbef50065189d063a Mon Sep 17 00:00:00 2001 From: Patrick Britton Date: Mon, 16 Feb 2026 23:23:35 -0600 Subject: [PATCH] fix: remove duplicate ALTCHA route registrations - Remove duplicate routes from auth and v1 groups - Keep only the main router registrations - This fixes the panic on startup --- go-backend/cmd/api/main.go | 9 --------- 1 file changed, 9 deletions(-) diff --git a/go-backend/cmd/api/main.go b/go-backend/cmd/api/main.go index 54a2dc0..620c5e2 100644 --- a/go-backend/cmd/api/main.go +++ b/go-backend/cmd/api/main.go @@ -266,17 +266,8 @@ func main() { auth.GET("/verify", authHandler.VerifyEmail) auth.POST("/forgot-password", authHandler.ForgotPassword) auth.POST("/reset-password", authHandler.ResetPassword) - auth.GET("/altcha-challenge", authHandler.GetAltchaChallenge) } - // Test endpoint to verify routing - v1.GET("/test", func(c *gin.Context) { - c.JSON(200, gin.H{"message": "Route test successful"}) - }) - - // Admin ALTCHA challenge endpoint (no auth required) - v1.GET("/admin/altcha-challenge", adminHandler.GetAltchaChallenge) - authorized := v1.Group("") authorized.Use(middleware.AuthMiddleware(cfg.JWTSecret, dbPool)) {