| 12345678910111213141516171819202122232425 |
- /*
- * @desc:后台路由
- * @company:云南奇讯科技有限公司
- * @Author: yixiaohu
- * @Date: 2022/2/18 17:34
- */
- package router
- import (
- "github.com/gogf/gf/v2/net/ghttp"
- "github.com/tiger1103/gfast/v3/internal/app/common/controller"
- commonService "github.com/tiger1103/gfast/v3/internal/app/common/service"
- )
- func BindController(group *ghttp.RouterGroup) {
- group.Group("/pub", func(group *ghttp.RouterGroup) {
- group.Middleware(commonService.Middleware().MiddlewareCORS)
- group.Group("/captcha", func(group *ghttp.RouterGroup) {
- group.Bind(
- controller.Captcha,
- )
- })
- })
- }
|