mirror of
https://gitee.com/dromara/mayfly-go
synced 2025-11-03 07:50:25 +08:00
18 lines
320 B
Go
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)
|
|
})
|
|
}
|
|
}
|