From 45a7655f88d95dee7796656c5274b1a03c482134 Mon Sep 17 00:00:00 2001 From: Patrick Britton Date: Mon, 16 Feb 2026 22:40:26 -0600 Subject: [PATCH] fix: move ALTCHA challenge endpoints to correct router groups - Move auth ALTCHA challenge to /api/v1/auth group - Move admin ALTCHA challenge to root router before admin login - Fix route registration issue where endpoints were not accessible --- 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 19236d9..a18ea7c 100644 --- a/go-backend/cmd/api/main.go +++ b/go-backend/cmd/api/main.go @@ -260,6 +260,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) } authorized := v1.Group("") @@ -510,8 +511,7 @@ func main() { } } - // ALTCHA challenge endpoints (no auth required) - r.GET("/api/v1/auth/altcha-challenge", authHandler.GetAltchaChallenge) + // Admin ALTCHA challenge endpoint (no auth required) r.GET("/api/v1/admin/altcha-challenge", adminHandler.GetAltchaChallenge) // Admin login (no auth middleware - this IS the auth step)