sandbox.go 358 B

123456789101112131415
  1. package routers
  2. import (
  3. "github.com/gin-gonic/gin"
  4. "hongze/hongze_yb/controller/sandbox"
  5. "hongze/hongze_yb/middleware"
  6. )
  7. func InitSandbox(r *gin.Engine) {
  8. rGroup := r.Group("api/sandbox").Use(middleware.Token())
  9. rGroup.GET("/list", sandbox.List)
  10. rGroup.GET("/detail", sandbox.Detail)
  11. rGroup.GET("/permission_count", sandbox.PermissionCountList)
  12. }