From bb391b82920104fbb0358762c30f66dfd3fd53b2 Mon Sep 17 00:00:00 2001 From: duyu Date: Thu, 18 Jul 2024 17:43:46 +0800 Subject: [PATCH] addtemp --- app/http/routes/route.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/http/routes/route.go b/app/http/routes/route.go index 2af8652..5aaa0bf 100644 --- a/app/http/routes/route.go +++ b/app/http/routes/route.go @@ -69,7 +69,7 @@ func RegisterRoute(router *gin.Engine) { } orders := router.Group("/orders") - orders.Use(middlewares.VerifyHtmlIp()) + // orders.Use(middlewares.VerifyHtmlIp()) { orders.POST("/get_by_id", ordersCon.GetById) orders.POST("/search", ordersCon.Search) @@ -79,7 +79,7 @@ func RegisterRoute(router *gin.Engine) { } product := router.Group("/product") - product.Use(middlewares.VerifyHtmlIp()) + // product.Use(middlewares.VerifyHtmlIp()) { product.POST("/get_by_id", proCon.GetById) product.POST("/search", proCon.Search) @@ -89,7 +89,7 @@ func RegisterRoute(router *gin.Engine) { } whitelist := router.Group("/whitelist") - whitelist.Use(middlewares.VerifyHtmlIp()) + // whitelist.Use(middlewares.VerifyHtmlIp()) { whitelist.POST("/get_by_id", wlCon.GetById) whitelist.POST("/search", wlCon.Search) @@ -114,7 +114,7 @@ func RegisterRoute(router *gin.Engine) { } temp := router.Group("temp") - temp.Use(middlewares.VerifyHtmlIp()) + // temp.Use(middlewares.VerifyHtmlIp()) temp.Use(middlewares.RequestLog()) { temp.POST("/recharge/order", zlCon.CreateOrder)