router.go 598 B

12345678910111213141516171819202122232425
  1. /*
  2. * @desc:后台路由
  3. * @company:云南奇讯科技有限公司
  4. * @Author: yixiaohu
  5. * @Date: 2022/2/18 17:34
  6. */
  7. package router
  8. import (
  9. "github.com/gogf/gf/v2/net/ghttp"
  10. "github.com/tiger1103/gfast/v3/internal/app/common/controller"
  11. commonService "github.com/tiger1103/gfast/v3/internal/app/common/service"
  12. )
  13. func BindController(group *ghttp.RouterGroup) {
  14. group.Group("/pub", func(group *ghttp.RouterGroup) {
  15. group.Middleware(commonService.Middleware().MiddlewareCORS)
  16. group.Group("/captcha", func(group *ghttp.RouterGroup) {
  17. group.Bind(
  18. controller.Captcha,
  19. )
  20. })
  21. })
  22. }