Feat: captcha

This commit is contained in:
HFO4
2019-11-13 17:03:55 +08:00
parent c7e47293db
commit 7d4e212d4e
6 changed files with 74 additions and 2 deletions

View File

@@ -32,6 +32,8 @@ func InitRouter() *gin.Engine {
v3.GET("Ping", controllers.Ping)
// 用户登录
v3.POST("User/Session", controllers.UserLogin)
// 验证码
v3.GET("Captcha", controllers.Captcha)
// 需要登录保护的
auth := v3.Group("")