mirror of
https://github.com/sonr-io/sonr.git
synced 2026-08-02 17:31:39 +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 +0,0 @@
|
||||
package handlers
|
||||
@@ -1 +0,0 @@
|
||||
package handlers
|
||||
@@ -1 +0,0 @@
|
||||
package handlers
|
||||
@@ -14,16 +14,16 @@ import (
|
||||
|
||||
"github.com/labstack/echo/v4"
|
||||
promise "github.com/nlepage/go-js-promise"
|
||||
"github.com/onsonr/sonr/internal/dwn/handlers"
|
||||
"github.com/onsonr/sonr/internal/dwn/middleware"
|
||||
"github.com/onsonr/sonr/internal/dwn/state"
|
||||
"github.com/onsonr/sonr/pkg/nebula"
|
||||
)
|
||||
|
||||
func main() {
|
||||
e := echo.New()
|
||||
e.Use(middleware.UseSession)
|
||||
nebula.RouteViews(e)
|
||||
handlers.RegisterState(e)
|
||||
nebula.RegisterHandlers(e)
|
||||
state.RegisterHandlers(e)
|
||||
Serve(e)
|
||||
}
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
package handlers
|
||||
package state
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
@@ -0,0 +1 @@
|
||||
package state
|
||||
@@ -1,4 +1,4 @@
|
||||
package handlers
|
||||
package state
|
||||
|
||||
import (
|
||||
"github.com/labstack/echo/v4"
|
||||
@@ -1,11 +1,11 @@
|
||||
package handlers
|
||||
package state
|
||||
|
||||
import (
|
||||
"github.com/labstack/echo/v4"
|
||||
middleware "github.com/onsonr/sonr/internal/dwn/middleware"
|
||||
)
|
||||
|
||||
func RegisterState(e *echo.Echo) {
|
||||
func RegisterHandlers(e *echo.Echo) {
|
||||
g := e.Group("state")
|
||||
g.POST("/login/:identifier", handleCredentialAssertion)
|
||||
// g.GET("/discovery", state.GetDiscovery)
|
||||
@@ -0,0 +1 @@
|
||||
package state
|
||||
@@ -0,0 +1 @@
|
||||
package state
|
||||
Reference in New Issue
Block a user