wireguard-dashboard/route/captcha.go

17 lines
274 B
Go
Raw Normal View History

2024-03-06 17:31:39 +08:00
package route
import (
"github.com/gin-gonic/gin"
"wireguard-dashboard/http/api"
)
// Captcha
// @description: 验证码
// @param r
func Captcha(r *gin.Engine) {
captcha := r.Group("captcha")
{
2024-03-07 11:03:46 +08:00
captcha.GET("", api.Captcha().GenerateCaptcha) // 生成验证码
2024-03-06 17:31:39 +08:00
}
}