Files
mayfly-go/server/internal/sys/router/captcha.go
2023-01-14 16:29:52 +08:00

18 lines
325 B
Go

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