This commit is contained in:
duyu 2024-07-18 17:43:46 +08:00
parent 02facadbaf
commit bb391b8292
1 changed files with 4 additions and 4 deletions

View File

@ -69,7 +69,7 @@ func RegisterRoute(router *gin.Engine) {
} }
orders := router.Group("/orders") orders := router.Group("/orders")
orders.Use(middlewares.VerifyHtmlIp()) // orders.Use(middlewares.VerifyHtmlIp())
{ {
orders.POST("/get_by_id", ordersCon.GetById) orders.POST("/get_by_id", ordersCon.GetById)
orders.POST("/search", ordersCon.Search) orders.POST("/search", ordersCon.Search)
@ -79,7 +79,7 @@ func RegisterRoute(router *gin.Engine) {
} }
product := router.Group("/product") product := router.Group("/product")
product.Use(middlewares.VerifyHtmlIp()) // product.Use(middlewares.VerifyHtmlIp())
{ {
product.POST("/get_by_id", proCon.GetById) product.POST("/get_by_id", proCon.GetById)
product.POST("/search", proCon.Search) product.POST("/search", proCon.Search)
@ -89,7 +89,7 @@ func RegisterRoute(router *gin.Engine) {
} }
whitelist := router.Group("/whitelist") whitelist := router.Group("/whitelist")
whitelist.Use(middlewares.VerifyHtmlIp()) // whitelist.Use(middlewares.VerifyHtmlIp())
{ {
whitelist.POST("/get_by_id", wlCon.GetById) whitelist.POST("/get_by_id", wlCon.GetById)
whitelist.POST("/search", wlCon.Search) whitelist.POST("/search", wlCon.Search)
@ -114,7 +114,7 @@ func RegisterRoute(router *gin.Engine) {
} }
temp := router.Group("temp") temp := router.Group("temp")
temp.Use(middlewares.VerifyHtmlIp()) // temp.Use(middlewares.VerifyHtmlIp())
temp.Use(middlewares.RequestLog()) temp.Use(middlewares.RequestLog())
{ {
temp.POST("/recharge/order", zlCon.CreateOrder) temp.POST("/recharge/order", zlCon.CreateOrder)