package router import ( "github.com/gin-gonic/gin" "insure/api/zking" ) func zkingRouteInit(r *gin.Engine) { zkGroup := r.Group("/zking") zkGroup.Match([]string{"POST", "GET", "OPTIONS"}, "/push", zking.Push) zkGroup.Match([]string{"POST", "GET", "OPTIONS"}, "/revoke", zking.Revoke) zkGroup.Match([]string{"POST", "GET", "OPTIONS"}, "/claim", zking.Claim) }