mirror of
https://gitee.com/dromara/mayfly-go
synced 2025-11-02 23:40:24 +08:00
16 lines
270 B
Go
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)
|
|
}
|
|
}
|