mirror of
https://github.com/sonr-io/sonr.git
synced 2026-08-02 17:31:39 +00:00
refactor: use nebula/routes instead of nebula/global
This commit is contained in:
+3
-3
@@ -8,7 +8,7 @@ import (
|
||||
|
||||
"github.com/ipfs/boxo/files"
|
||||
dwngen "github.com/onsonr/sonr/pkg/dwn/gen"
|
||||
"github.com/onsonr/sonr/pkg/nebula/global"
|
||||
"github.com/onsonr/sonr/pkg/nebula/routes"
|
||||
)
|
||||
|
||||
//go:embed app.wasm
|
||||
@@ -30,7 +30,7 @@ func NewVaultDirectory(cnfg *dwngen.Config) (files.Node, error) {
|
||||
}
|
||||
|
||||
w := bytes.NewBuffer(nil)
|
||||
err = global.IndexFile().Render(context.Background(), w)
|
||||
err = routes.IndexFile().Render(context.Background(), w)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
@@ -46,7 +46,7 @@ func NewVaultDirectory(cnfg *dwngen.Config) (files.Node, error) {
|
||||
// Use IndexHTML template to generate the index file
|
||||
func IndexHTMLFile() (files.Node, error) {
|
||||
w := bytes.NewBuffer(nil)
|
||||
err := global.IndexFile().Render(context.Background(), w)
|
||||
err := routes.IndexFile().Render(context.Background(), w)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user