aa
This commit is contained in:
@@ -26,6 +26,10 @@ func Init(r *gin.Engine) {
|
||||
print.POST("/updatePrinter", controllers.UpdatePrinter)
|
||||
print.POST("/testPrint", controllers.TestPrint)
|
||||
print.GET("/getPrintMessages", controllers.GetPrintMessages)
|
||||
//order
|
||||
order := v2.Group("/order")
|
||||
order.POST("/createOrder", controllers.CreateOrder)
|
||||
order.POST("/pay", controllers.Pay)
|
||||
|
||||
//v1是不需要token的
|
||||
v1 := r.Group("v1")
|
||||
@@ -36,6 +40,10 @@ func Init(r *gin.Engine) {
|
||||
userw.GET("/getMenus", controllers.GetMenus)
|
||||
userw.GET("/getMenuDetail", controllers.GetMenuDetail)
|
||||
|
||||
//config
|
||||
config := v1.Group("/config")
|
||||
config.GET("/getConfig", controllers.GetConfig)
|
||||
|
||||
//自动路由
|
||||
r.Any("/callback/*path", router.AutoRoute(&controllers.CallbackController{}))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user