Files
SamWaf/router/waf_otp_router.go
2025-02-26 13:39:25 +08:00

18 lines
404 B
Go

package router
import (
"SamWaf/api"
"github.com/gin-gonic/gin"
)
type WafOtpRouter struct {
}
func (receiver *WafOtpRouter) InitWafOtpRouter(group *gin.RouterGroup) {
api := api.APIGroupAPP.WafOtpApi
router := group.Group("")
router.GET("/samwaf/wafhost/otp/init", api.InitOtpApi)
router.POST("/samwaf/wafhost/otp/bind", api.BindApi)
router.POST("/samwaf/wafhost/otp/unbind", api.UnBindApi)
}