17 lines
281 B
Go
17 lines
281 B
Go
|
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")
|
||
|
{
|
||
|
captcha.GET("captcha", api.Captcha().GenerateCaptcha) // 生成验证码
|
||
|
}
|
||
|
}
|