From fcdecacb01d3249589b219e286cff4f30186d02f Mon Sep 17 00:00:00 2001 From: Patrick Britton Date: Mon, 16 Feb 2026 23:07:18 -0600 Subject: [PATCH] fix: move ALTCHA routes to correct location - Move auth ALTCHA challenge inside auth group - Move admin ALTCHA challenge to v1 group - Move test endpoint to v1 group - This should fix the route registration issue --- go-backend/cmd/api/main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/go-backend/cmd/api/main.go b/go-backend/cmd/api/main.go index 7a47091..c6d54d4 100644 --- a/go-backend/cmd/api/main.go +++ b/go-backend/cmd/api/main.go @@ -259,6 +259,7 @@ 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 @@ -266,8 +267,7 @@ func main() { c.JSON(200, gin.H{"message": "Route test successful"}) }) - // ALTCHA challenge endpoints (no rate limiting) - v1.GET("/auth/altcha-challenge", authHandler.GetAltchaChallenge) + // Admin ALTCHA challenge endpoint (no auth required) v1.GET("/admin/altcha-challenge", adminHandler.GetAltchaChallenge) authorized := v1.Group("")