Files
mayfly-go/server/internal/sys/router/captcha.go

18 lines
328 B
Go

package router
import (
"mayfly-go/internal/sys/api"
"mayfly-go/pkg/ctx"
"github.com/gin-gonic/gin"
)
func InitCaptchaRouter(router *gin.RouterGroup) {
captcha := router.Group("sys/captcha")
{
captcha.GET("", func(c *gin.Context) {
ctx.NewReqCtxWithGin(c).WithNeedToken(false).Handle(api.GenerateCaptcha)
})
}
}