Files
mayfly-go/server/internal/auth/router/captcha.go
meilin.huang e56788af3e refactor: dbm
2024-12-08 13:04:23 +08:00

16 lines
270 B
Go

package router
import (
"mayfly-go/internal/auth/api"
"mayfly-go/pkg/req"
"github.com/gin-gonic/gin"
)
func InitCaptcha(router *gin.RouterGroup) {
captcha := router.Group("sys/captcha")
{
req.NewGet("", api.GenerateCaptcha).DontNeedToken().Group(captcha)
}
}