package routes import ( "bugulma/backend/internal/handler" "github.com/gin-gonic/gin" ) // RegisterProposalRoutes registers all proposal-related routes func RegisterProposalRoutes(public *gin.RouterGroup, protected *gin.RouterGroup, proposalHandler *handler.ProposalHandler) { // Public read-only routes public.GET("/proposals", proposalHandler.GetAll) public.GET("/proposals/:id", proposalHandler.GetByID) public.GET("/proposals/organization/:orgId", proposalHandler.GetByOrganizationID) // Protected write routes proposals := protected.Group("/proposals") { proposals.POST("", proposalHandler.Create) proposals.POST("/:id/status", proposalHandler.UpdateStatus) } }