package downloads

import "github.com/gin-gonic/gin"

// RegisterDownloadRoutes mounts the public release-artifact download surface.
//
// INTENTIONALLY UNAUTHENTICATED: release artifacts are public downloads, so no
// requireAuth middleware is attached (mirrors the public webhook/discovery
// routes). The :kind segment is validated by the handler, which 404s any kind
// it does not recognize.
func RegisterDownloadRoutes(router *gin.Engine, handler *Handler) {
	router.GET("/downloads/:kind/latest", handler.Latest)
}
