package router import ( "fmt" "github.com/gin-gonic/gin" "gitlab.wodcloud.com/smart-operation/so-operation-api/src/common/conf" "gitlab.wodcloud.com/smart-operation/so-operation-api/src/controller" ) // InitAlertWebhookRouter 初始化预警回调路由 func InitAlertWebhookRouter(e *gin.Engine) { group := e.Group(fmt.Sprintf("%s/alert_webhook", conf.Options.Prefix)) { group.POST("", controller.AlertWebhook) } }