0_router.go 248 B

12345678910
  1. package api
  2. import "github.com/gin-gonic/gin"
  3. func InitGinRouter(r *gin.Engine) {
  4. session := r.Group("cock/api/", CheckSession)
  5. session.POST("diamond/change", changeDiamond)
  6. session.POST("diamond/get", getDiamond)
  7. r.POST("cock/auth", auth)
  8. }