🎨验证码接口
This commit is contained in:
16
route/captcha.go
Normal file
16
route/captcha.go
Normal file
@@ -0,0 +1,16 @@
|
||||
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) // 生成验证码
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user