✨ add jwt / complete the rotation verification
This commit is contained in:
14
router/modules/captcha_router.go
Normal file
14
router/modules/captcha_router.go
Normal file
@@ -0,0 +1,14 @@
|
||||
package modules
|
||||
|
||||
import (
|
||||
"github.com/gin-gonic/gin"
|
||||
"schisandra-cloud-album/api"
|
||||
)
|
||||
|
||||
var captchaApi = api.Api.CaptchaApi
|
||||
|
||||
func CaptchaRouter(router *gin.RouterGroup) {
|
||||
group := router.Group("/captcha")
|
||||
group.GET("/rotate/get", captchaApi.GenerateRotateCaptcha)
|
||||
group.POST("/rotate/check", captchaApi.CheckRotateData)
|
||||
}
|
14
router/modules/sms_router.go
Normal file
14
router/modules/sms_router.go
Normal file
@@ -0,0 +1,14 @@
|
||||
package modules
|
||||
|
||||
import (
|
||||
"github.com/gin-gonic/gin"
|
||||
"schisandra-cloud-album/api"
|
||||
)
|
||||
|
||||
var smsApi = api.Api.SmsApi
|
||||
|
||||
func SmsRouter(router *gin.RouterGroup) {
|
||||
group := router.Group("/sms")
|
||||
group.GET("/ali/send", smsApi.SendMessageByAli)
|
||||
group.GET("/smsbao/send", smsApi.SendMessageBySmsBao)
|
||||
}
|
Reference in New Issue
Block a user