mirror of
https://github.com/sonr-io/sonr.git
synced 2026-08-02 17:31:39 +00:00
refactor: move vault package to app directory
This commit is contained in:
@@ -4,8 +4,8 @@ import (
|
||||
"reflect"
|
||||
"strings"
|
||||
|
||||
"github.com/onsonr/sonr/app/vault/types"
|
||||
"github.com/onsonr/sonr/pkg/common/models"
|
||||
"github.com/onsonr/sonr/pkg/vault/types"
|
||||
)
|
||||
|
||||
// DefaultSchema returns the default schema
|
||||
|
||||
@@ -5,7 +5,7 @@ import (
|
||||
|
||||
"github.com/ipfs/boxo/files"
|
||||
"github.com/onsonr/sonr/app/gateway/config/internal"
|
||||
"github.com/onsonr/sonr/pkg/vault/types"
|
||||
"github.com/onsonr/sonr/app/vault/types"
|
||||
)
|
||||
|
||||
const SchemaVersion = 1
|
||||
|
||||
@@ -4,9 +4,9 @@ import (
|
||||
"net/http"
|
||||
|
||||
"github.com/labstack/echo/v4"
|
||||
session "github.com/onsonr/sonr/app/vault/internal"
|
||||
"github.com/onsonr/sonr/app/vault/internal/pages/index"
|
||||
"github.com/onsonr/sonr/pkg/common/response"
|
||||
session "github.com/onsonr/sonr/pkg/vault/internal"
|
||||
"github.com/onsonr/sonr/pkg/vault/pages/index"
|
||||
)
|
||||
|
||||
func HandleIndex(c echo.Context) error {
|
||||
@@ -6,8 +6,8 @@ import (
|
||||
|
||||
"github.com/labstack/echo/v4"
|
||||
|
||||
"github.com/onsonr/sonr/app/vault/types"
|
||||
"github.com/onsonr/sonr/pkg/common"
|
||||
"github.com/onsonr/sonr/pkg/vault/types"
|
||||
)
|
||||
|
||||
type SessionCtx interface {
|
||||
@@ -7,9 +7,9 @@ package vault
|
||||
import (
|
||||
"github.com/labstack/echo/v4"
|
||||
|
||||
"github.com/onsonr/sonr/pkg/vault/handlers"
|
||||
"github.com/onsonr/sonr/pkg/vault/internal/session"
|
||||
"github.com/onsonr/sonr/pkg/vault/types"
|
||||
"github.com/onsonr/sonr/app/vault/handlers"
|
||||
session "github.com/onsonr/sonr/app/vault/internal"
|
||||
"github.com/onsonr/sonr/app/vault/types"
|
||||
)
|
||||
|
||||
// RegisterRoutes registers the Decentralized Web Node API routes.
|
||||
+1
-1
@@ -12,8 +12,8 @@ import (
|
||||
"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/didauth/producer"
|
||||
)
|
||||
|
||||
//go:embed config.pkl
|
||||
|
||||
+3
-3
@@ -8,9 +8,9 @@ import (
|
||||
"syscall/js"
|
||||
|
||||
"github.com/labstack/echo/v4"
|
||||
"github.com/onsonr/sonr/pkg/common/didauth/controller"
|
||||
"github.com/onsonr/sonr/pkg/vault"
|
||||
"github.com/onsonr/sonr/pkg/vault/types"
|
||||
"github.com/onsonr/sonr/app/vault"
|
||||
"github.com/onsonr/sonr/app/vault/types"
|
||||
"github.com/onsonr/sonr/pkg/didauth/controller"
|
||||
)
|
||||
|
||||
var (
|
||||
|
||||
@@ -4,7 +4,7 @@ import (
|
||||
"net/http"
|
||||
|
||||
"github.com/labstack/echo/v4"
|
||||
"github.com/onsonr/sonr/pkg/gateway/config"
|
||||
"github.com/onsonr/sonr/app/gateway/config"
|
||||
"google.golang.org/grpc"
|
||||
)
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
@go.Package { name = "github.com/onsonr/sonr/pkg/gateway/config" }
|
||||
@go.Package { name = "github.com/onsonr/sonr/app/gateway/config" }
|
||||
|
||||
|
||||
open module sonr.hway.Env
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
@go.Package { name = "github.com/onsonr/sonr/pkg/vault/types" }
|
||||
@go.Package { name = "github.com/onsonr/sonr/app/vault/types" }
|
||||
|
||||
module sonr.motr.DWN
|
||||
|
||||
|
||||
Reference in New Issue
Block a user