mirror of
				https://gitee.com/dromara/mayfly-go
				synced 2025-11-04 08:20:25 +08:00 
			
		
		
		
	
		
			
				
	
	
		
			18 lines
		
	
	
		
			327 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			18 lines
		
	
	
		
			327 B
		
	
	
	
		
			Go
		
	
	
	
	
	
package router
 | 
						|
 | 
						|
import (
 | 
						|
	"mayfly-go/base/ctx"
 | 
						|
	"mayfly-go/server/sys/api"
 | 
						|
 | 
						|
	"github.com/gin-gonic/gin"
 | 
						|
)
 | 
						|
 | 
						|
func InitCaptchaRouter(router *gin.RouterGroup) {
 | 
						|
	captcha := router.Group("sys/captcha")
 | 
						|
	{
 | 
						|
		captcha.GET("", func(c *gin.Context) {
 | 
						|
			ctx.NewReqCtxWithGin(c).WithNeedToken(false).Handle(api.GenerateCaptcha)
 | 
						|
		})
 | 
						|
	}
 | 
						|
}
 |