wireguard-dashboard/route/captcha.go
2024-03-13 17:05:02 +08:00

17 lines
285 B
Go

package route
import (
"github.com/gin-gonic/gin"
"wireguard-dashboard/http/api"
)
// CaptchaApi
// @description: 验证码
// @param r
func CaptchaApi(r *gin.RouterGroup) {
captcha := r.Group("captcha")
{
captcha.GET("", api.Captcha().GenerateCaptcha) // 生成验证码
}
}