From c158904efcc8b1683812e07d001b30fa84e5d514 Mon Sep 17 00:00:00 2001 From: Prad Nukala Date: Mon, 9 Dec 2024 18:35:36 -0500 Subject: [PATCH] refactor: improve code structure within gateway package --- app/gateway/routes.go | 8 ++++---- cmd/hway/main.go | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/app/gateway/routes.go b/app/gateway/routes.go index 1e5841da9..569c733bf 100644 --- a/app/gateway/routes.go +++ b/app/gateway/routes.go @@ -3,11 +3,11 @@ package gateway import ( "github.com/labstack/echo/v4" + "github.com/onsonr/sonr/app/gateway/config" + "github.com/onsonr/sonr/app/gateway/handlers" + "github.com/onsonr/sonr/app/gateway/internal/database" + "github.com/onsonr/sonr/app/gateway/internal/session" "github.com/onsonr/sonr/pkg/common/response" - "github.com/onsonr/sonr/pkg/gateway/config" - "github.com/onsonr/sonr/pkg/gateway/handlers" - "github.com/onsonr/sonr/pkg/gateway/internal/database" - "github.com/onsonr/sonr/pkg/gateway/internal/session" ) func RegisterRoutes(e *echo.Echo, env config.Env) error { diff --git a/cmd/hway/main.go b/cmd/hway/main.go index a59f82cdd..dd37b997d 100644 --- a/cmd/hway/main.go +++ b/cmd/hway/main.go @@ -9,11 +9,11 @@ import ( "github.com/labstack/echo/v4" "github.com/labstack/echo/v4/middleware" + "github.com/onsonr/sonr/app/gateway" + "github.com/onsonr/sonr/app/gateway/config" "github.com/onsonr/sonr/crypto/ucan" "github.com/onsonr/sonr/pkg/common/didauth/producer" "github.com/onsonr/sonr/pkg/common/ipfs" - "github.com/onsonr/sonr/pkg/gateway" - "github.com/onsonr/sonr/pkg/gateway/config" ) //go:embed config.pkl