mirror of
https://gitee.com/samwaf/SamWaf.git
synced 2025-12-06 14:59:18 +08:00
18 lines
404 B
Go
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)
|
|
}
|