mirror of
https://github.com/sonr-io/sonr.git
synced 2026-08-04 02:11:40 +00:00
feature/did swt ante (#22)
* feat: add support for vault allocation * feat(dwn): Add IPFS client * refactor: move GetDefaultBypassFeeMessages to ibc/module.go * refactor(did): clean up genesis state definition * feat: remove global integrity proof requirement * feat: remove gas consumption for tx size * feat: add registration route * refactor: centralize response handling in the package * feat(types): add account and pubkey types * refactor: simplify dockerfile process-compose.yaml copy
This commit is contained in:
@@ -1,40 +0,0 @@
|
||||
//go:build js && wasm
|
||||
// +build js,wasm
|
||||
|
||||
package main
|
||||
|
||||
import (
|
||||
"github.com/labstack/echo/v4"
|
||||
"github.com/onsonr/sonr/internal/vfs/wasm"
|
||||
|
||||
"github.com/onsonr/sonr/internal/db"
|
||||
)
|
||||
|
||||
var dwn *DWN
|
||||
|
||||
type DWN struct {
|
||||
*echo.Echo
|
||||
DB *db.DB
|
||||
}
|
||||
|
||||
func main() {
|
||||
dwn = initRails()
|
||||
wasm.Serve(dwn.Echo)
|
||||
}
|
||||
|
||||
// initRails initializes the Rails application
|
||||
func initRails() *DWN {
|
||||
// Open the database
|
||||
e := echo.New()
|
||||
db, err := db.New()
|
||||
if err != nil {
|
||||
panic(err.Error())
|
||||
}
|
||||
db.ServeEcho(e.Group("/dwn"))
|
||||
|
||||
// Initialize the htmx handler
|
||||
return &DWN{
|
||||
Echo: e,
|
||||
DB: db,
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user