This commit is contained in:
suyl
2021-07-20 18:31:37 +08:00
parent bc87ce5508
commit 44d20db9af
3 changed files with 17 additions and 0 deletions

View File

@@ -2,6 +2,7 @@ package routers
import (
"git.rosy.net.cn/jx-print/controllers"
router "github.com/chenqinghe/gin-autorouter"
"github.com/gin-gonic/gin"
)
@@ -34,4 +35,7 @@ func Init(r *gin.Engine) {
userw.POST("/register", controllers.RegisterUser)
userw.GET("/getMenus", controllers.GetMenus)
userw.GET("/getMenuDetail", controllers.GetMenuDetail)
//自动路由
r.Any("/callback/tlpay", router.AutoRoute(&controllers.CallbackController{}))
}