diff --git a/src/router/router.go b/src/router/router.go index 4bc28ffb9a7af69abbbb3e21f221e3ea921dab47..60aee0bc06710caa2c145d6618a9c37eb60a8484 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)