package routes import ( "bugulma/backend/internal/handler" "github.com/gin-gonic/gin" ) // RegisterAuthRoutes registers all authentication-related routes func RegisterAuthRoutes(router *gin.RouterGroup, authHandler *handler.AuthHandler) { auth := router.Group("/auth") { auth.POST("/login", authHandler.Login) auth.POST("/register", authHandler.Register) auth.GET("/me", authHandler.Me) } } // RegisterUserRoutes registers user-related routes func RegisterUserRoutes(protected *gin.RouterGroup, orgHandler *handler.OrganizationHandler) { users := protected.Group("/users") { users.GET("/me/organizations", orgHandler.GetUserOrganizations) } }