test.go 385 B

12345678910111213141516171819202122
  1. package routers
  2. import (
  3. "github.com/gin-gonic/gin"
  4. "hongze/hongze_yb/controller"
  5. )
  6. func InitTest(r *gin.Engine) {
  7. rGroup := r.Group("test")
  8. rGroup.GET("/test", controller.Test)
  9. rGroup.GET("/test2", controller.Test2)
  10. initTest(r)
  11. }
  12. func initTest(r *gin.Engine) {
  13. rGroup := r.Group("api/test")
  14. rGroup.GET("/test", controller.Test)
  15. rGroup.GET("/test2", controller.Test2)
  16. }