You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
367 B
Go
14 lines
367 B
Go
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)
|
|
}
|