2024-03-06 17:31:39 +08:00
|
|
|
package route
|
|
|
|
|
|
|
|
import (
|
|
|
|
"github.com/gin-gonic/gin"
|
|
|
|
"wireguard-dashboard/http/api"
|
|
|
|
)
|
|
|
|
|
2024-03-07 17:07:41 +08:00
|
|
|
// CaptchaApi
|
2024-03-06 17:31:39 +08:00
|
|
|
// @description: 验证码
|
|
|
|
// @param r
|
2024-03-13 17:05:02 +08:00
|
|
|
func CaptchaApi(r *gin.RouterGroup) {
|
2024-03-06 17:31:39 +08:00
|
|
|
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
|
|
|
}
|
|
|
|
}
|