refactor: move vault package to app directory
This commit is contained in:
1 parent
c158904efc
commit
e3b8f2cffe
46 files changed
+15
-15
No files matched your search
@@ -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
|
||||
|
||||
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
@@ -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 {
|
||||
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
@@ -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 {
|
||||
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
@@ -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.
|
||||
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
+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 (
|
||||
|
||||
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
@@ -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"
|
||||
)
|
||||
|
||||
File renamed without changes.
@@ -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