From c9355592d22746d9d2d5d25b759c757b2f75ee16 Mon Sep 17 00:00:00 2001 From: gaoshiyao Date: Wed, 6 Nov 2019 15:10:54 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E8=B7=AF=E7=94=B1=E8=AE=BE?= =?UTF-8?q?=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/router/router.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/router/router.go b/src/router/router.go index 4bc28ff..60aee0b 100644 --- a/src/router/router.go +++ b/src/router/router.go @@ -16,6 +16,7 @@ package router import ( "github.com/gin-gonic/gin" + "gitlab.wodcloud.com/apaas/apaas-meshproxy/src/config" "gitlab.wodcloud.com/apaas/apaas-meshproxy/src/handler" "gitlab.wodcloud.com/apaas/apaas-meshproxy/src/router/middleware/header" "net/http" @@ -28,7 +29,7 @@ func Load(middleware ...gin.HandlerFunc) http.Handler { e.Use(header.Options) e.Use(header.Secure) e.Use(middleware...) - root := e.Group("") + root := e.Group(config.Prefix) { root.GET("/count", handler.GetCount) root.Any("/proxy/*action", handler.Proxy) -- 2.26.0