Files
cloudnest/internal/interface/http/routes/captcha_routes.go
T

18 lines
533 B
Go

package routes
import (
"cloudnest/internal/interface/http/handler"
"github.com/gin-gonic/gin"
)
// RegisterCaptchaRoutes registers captcha-related routes.
// RegisterCaptchaRoutes 注册验证码相关的路由。
//
// Routes:
// - GET /captcha: Generate a new captcha (returns captcha_id and image_url).
// - GET /captcha/:id/image: Get captcha image by ID.
func RegisterCaptchaRoutes(r *gin.RouterGroup, h *handler.CaptchaHandler) {
r.GET("/captcha", h.GenerateCaptcha)
r.GET("/captcha/:id/image", h.GetCaptchaImage)
}