mirror of
https://github.com/onsonr/sonr.git
synced 2025-03-10 13:07:09 +00:00
refactor: improve code structure within gateway package
This commit is contained in:
parent
f250082fff
commit
c158904efc
@ -3,11 +3,11 @@ package gateway
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/labstack/echo/v4"
|
"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/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 {
|
func RegisterRoutes(e *echo.Echo, env config.Env) error {
|
||||||
|
@ -9,11 +9,11 @@ import (
|
|||||||
|
|
||||||
"github.com/labstack/echo/v4"
|
"github.com/labstack/echo/v4"
|
||||||
"github.com/labstack/echo/v4/middleware"
|
"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/crypto/ucan"
|
||||||
"github.com/onsonr/sonr/pkg/common/didauth/producer"
|
"github.com/onsonr/sonr/pkg/common/didauth/producer"
|
||||||
"github.com/onsonr/sonr/pkg/common/ipfs"
|
"github.com/onsonr/sonr/pkg/common/ipfs"
|
||||||
"github.com/onsonr/sonr/pkg/gateway"
|
|
||||||
"github.com/onsonr/sonr/pkg/gateway/config"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
//go:embed config.pkl
|
//go:embed config.pkl
|
||||||
|
Loading…
x
Reference in New Issue
Block a user