refactor: move gateway package to app directory

This commit is contained in:
Prad Nukala committed 2024-12-09 18:34:38 -05:00
1 parent 67432d3fdf
commit f250082fff
32 files changed
+11 -11

No files matched your search

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.
@@ -4,7 +4,7 @@ import (
"encoding/json"
"github.com/ipfs/boxo/files"
"github.com/onsonr/sonr/pkg/gateway/config/internal"
"github.com/onsonr/sonr/app/gateway/config/internal"
"github.com/onsonr/sonr/pkg/vault/types"
)
@@ -2,9 +2,9 @@ package handlers
import (
"github.com/labstack/echo/v4"
"github.com/onsonr/sonr/app/gateway/internal/pages/index"
"github.com/onsonr/sonr/app/gateway/internal/session"
"github.com/onsonr/sonr/pkg/common/response"
"github.com/onsonr/sonr/pkg/gateway/internal/session"
"github.com/onsonr/sonr/pkg/gateway/pages/index"
)
func HandleIndex(c echo.Context) error {
File renamed without changes.
@@ -8,11 +8,11 @@ import (
"github.com/go-webauthn/webauthn/protocol"
"github.com/labstack/echo/v4"
"github.com/onsonr/sonr/app/gateway/internal/database"
"github.com/onsonr/sonr/app/gateway/internal/pages/register"
"github.com/onsonr/sonr/crypto/mpc"
"github.com/onsonr/sonr/pkg/common/response"
"github.com/onsonr/sonr/pkg/common/styles/forms"
"github.com/onsonr/sonr/pkg/gateway/internal/database"
"github.com/onsonr/sonr/pkg/gateway/pages/register"
)
func HandleRegisterView(c echo.Context) error {
File renamed without changes.
@@ -4,7 +4,7 @@ import (
"os"
"path/filepath"
"github.com/onsonr/sonr/pkg/gateway/config"
"github.com/onsonr/sonr/app/gateway/config"
"gorm.io/driver/sqlite"
"gorm.io/gorm"
)
@@ -34,7 +34,7 @@ func formatDBPath(path string) string {
}
configDir := filepath.Join(home, ".config", "hway")
if err := os.MkdirAll(configDir, 0755); err != nil {
if err := os.MkdirAll(configDir, 0o755); err != nil {
// If we can't create the directory, fall back to current directory
return path
}
File renamed without changes.
@@ -5,8 +5,8 @@ import (
"strings"
"github.com/labstack/echo/v4"
"github.com/onsonr/sonr/app/gateway/internal/database"
"github.com/onsonr/sonr/pkg/common"
"github.com/onsonr/sonr/pkg/gateway/internal/database"
"github.com/segmentio/ksuid"
)
File renamed without changes.
@@ -4,8 +4,8 @@ import (
"net/http"
"github.com/labstack/echo/v4"
"github.com/onsonr/sonr/pkg/gateway/config"
"github.com/onsonr/sonr/pkg/gateway/internal/database"
"github.com/onsonr/sonr/app/gateway/config"
"github.com/onsonr/sonr/app/gateway/internal/database"
"gorm.io/gorm"
)
@@ -2,7 +2,7 @@ package session
import (
"github.com/labstack/echo/v4"
"github.com/onsonr/sonr/pkg/gateway/internal/database"
"github.com/onsonr/sonr/app/gateway/internal/database"
)
// ╭───────────────────────────────────────────────────────╮
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.