From b541403ce2f301d3c3f4f6f809996047953d24fa Mon Sep 17 00:00:00 2001 From: kevin Date: Wed, 12 Aug 2020 12:16:36 +0800 Subject: [PATCH] export router --- rest/ngin_test.go | 2 +- rest/{internal => }/router/patrouter.go | 0 rest/{internal => }/router/patrouter_test.go | 0 rest/server.go | 2 +- 4 files changed, 2 insertions(+), 2 deletions(-) rename rest/{internal => }/router/patrouter.go (100%) rename rest/{internal => }/router/patrouter_test.go (100%) diff --git a/rest/ngin_test.go b/rest/ngin_test.go index a4591197..01929454 100644 --- a/rest/ngin_test.go +++ b/rest/ngin_test.go @@ -9,7 +9,7 @@ import ( "github.com/stretchr/testify/assert" "github.com/tal-tech/go-zero/rest/httpx" - "github.com/tal-tech/go-zero/rest/internal/router" + "github.com/tal-tech/go-zero/rest/router" ) func TestWithMiddleware(t *testing.T) { diff --git a/rest/internal/router/patrouter.go b/rest/router/patrouter.go similarity index 100% rename from rest/internal/router/patrouter.go rename to rest/router/patrouter.go diff --git a/rest/internal/router/patrouter_test.go b/rest/router/patrouter_test.go similarity index 100% rename from rest/internal/router/patrouter_test.go rename to rest/router/patrouter_test.go diff --git a/rest/server.go b/rest/server.go index 005f3692..69496868 100644 --- a/rest/server.go +++ b/rest/server.go @@ -13,7 +13,7 @@ import ( "github.com/tal-tech/go-zero/rest/handler" "github.com/tal-tech/go-zero/rest/httpx" "github.com/tal-tech/go-zero/rest/internal" - "github.com/tal-tech/go-zero/rest/internal/router" + "github.com/tal-tech/go-zero/rest/router" ) // use 1000m to represent 100%