diff --git a/go-backend/cmd/api/main.go b/go-backend/cmd/api/main.go index 6b846b4..8384b40 100644 --- a/go-backend/cmd/api/main.go +++ b/go-backend/cmd/api/main.go @@ -261,8 +261,14 @@ func main() { auth.POST("/reset-password", authHandler.ResetPassword) } + // Test endpoint to verify routing + r.GET("/api/v1/test", func(c *gin.Context) { + c.JSON(200, gin.H{"message": "Route test successful"}) + }) + // ALTCHA challenge endpoint (no rate limiting) v1.GET("/auth/altcha-challenge", authHandler.GetAltchaChallenge) + r.GET("/api/v1/admin/altcha-challenge", adminHandler.GetAltchaChallenge) authorized := v1.Group("") authorized.Use(middleware.AuthMiddleware(cfg.JWTSecret, dbPool))