wireguard-dashboard/route/captcha.go

18 lines
350 B
Go
Raw Permalink Normal View History

2024-03-06 17:31:39 +08:00
package route
import (
"github.com/gin-gonic/gin"
"wireguard-dashboard/http/api"
2024-06-03 17:09:45 +08:00
"wireguard-dashboard/middleware"
2024-03-06 17:31:39 +08:00
)
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-06-03 17:09:45 +08:00
captcha := r.Group("captcha", middleware.SystemLogRequest())
2024-03-06 17:31:39 +08:00
{
2024-03-07 11:03:46 +08:00
captcha.GET("", api.Captcha().GenerateCaptcha) // 生成验证码
2024-03-06 17:31:39 +08:00
}
}