a
This commit is contained in:
@@ -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{}))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user