Skip to content

Commit

Permalink
refactor: use nebula/routes instead of nebula/global
Browse files Browse the repository at this point in the history
  • Loading branch information
prnk28 committed Oct 9, 2024
1 parent 32563a5 commit 45c4e0c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/dwn/embed.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
}
Expand All @@ -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
}
Expand Down

0 comments on commit 45c4e0c

Please sign in to comment.