mirror of
https://github.com/sonr-io/sonr.git
synced 2026-08-04 18:31:41 +00:00
* 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
23 lines
616 B
Go
23 lines
616 B
Go
package state
|
|
|
|
import (
|
|
"github.com/labstack/echo/v4"
|
|
middleware "github.com/onsonr/sonr/internal/dwn/middleware"
|
|
)
|
|
|
|
func RegisterHandlers(e *echo.Echo) {
|
|
g := e.Group("state")
|
|
g.POST("/login/:identifier", handleCredentialAssertion)
|
|
// g.GET("/discovery", state.GetDiscovery)
|
|
g.GET("/jwks", getJWKS)
|
|
g.GET("/token", getToken)
|
|
g.POST("/:origin/grant/:subject", grantAuthorization)
|
|
g.POST("/register/:subject", handleCredentialCreation)
|
|
g.POST("/register/:subject/check", checkSubjectIsValid)
|
|
}
|
|
|
|
func RegisterSync(e *echo.Echo) {
|
|
g := e.Group("sync")
|
|
g.Use(middleware.MacaroonMiddleware("test", "test"))
|
|
}
|