16 lines
471 B
Go
16 lines
471 B
Go
package router
|
|
|
|
import (
|
|
"github.com/gin-gonic/gin"
|
|
"kra/internal/server/handler"
|
|
)
|
|
|
|
func RegisterAlertGovernance(private *gin.RouterGroup, h *handler.AlertGovernance) {
|
|
private.GET("/sw/alertRule/gap", h.Gap)
|
|
private.PUT("/sw/alertRule/gap", h.SaveGap)
|
|
private.GET("/sw/alertExemption/list", h.List)
|
|
private.GET("/sw/alertExemption/candidates", h.Candidates)
|
|
private.POST("/sw/alertExemption/add", h.Add)
|
|
private.PUT("/sw/alertExemption/remove/:id", h.Remove)
|
|
}
|