mirror of
https://github.com/onsonr/sonr.git
synced 2025-03-10 21:09:11 +00:00
refactor: update dwn configuration generation import path
This commit is contained in:
parent
45c4e0c850
commit
0a16e41c78
@ -7,7 +7,7 @@ import (
|
|||||||
"encoding/json"
|
"encoding/json"
|
||||||
|
|
||||||
"github.com/ipfs/boxo/files"
|
"github.com/ipfs/boxo/files"
|
||||||
dwngen "github.com/onsonr/sonr/pkg/dwn/gen"
|
"github.com/onsonr/sonr/pkg/dwn/gen"
|
||||||
"github.com/onsonr/sonr/pkg/nebula/routes"
|
"github.com/onsonr/sonr/pkg/nebula/routes"
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -23,7 +23,7 @@ var (
|
|||||||
)
|
)
|
||||||
|
|
||||||
// NewVaultDirectory creates a new directory with the default files
|
// NewVaultDirectory creates a new directory with the default files
|
||||||
func NewVaultDirectory(cnfg *dwngen.Config) (files.Node, error) {
|
func NewVaultDirectory(cnfg *gen.Config) (files.Node, error) {
|
||||||
dwnJSON, err := json.Marshal(cnfg)
|
dwnJSON, err := json.Marshal(cnfg)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
@ -55,7 +55,7 @@ func IndexHTMLFile() (files.Node, error) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// MarshalConfigFile uses the config template to generate the dwn config file
|
// MarshalConfigFile uses the config template to generate the dwn config file
|
||||||
func MarshalConfigFile(c *dwngen.Config) (files.Node, error) {
|
func MarshalConfigFile(c *gen.Config) (files.Node, error) {
|
||||||
dwnConfigData, err := json.Marshal(c)
|
dwnConfigData, err := json.Marshal(c)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
|
Loading…
x
Reference in New Issue
Block a user