Files
mayfly-go/server/internal/sys/router/captcha.go
2023-04-16 00:50:36 +08:00

18 lines
320 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).DontNeedToken().Handle(api.GenerateCaptcha)
})
}
}