mirror of
https://github.com/sonr-io/sonr.git
synced 2026-08-02 17:31:39 +00:00
refactor: use htmx instead of dwn for vault client
This commit is contained in:
@@ -15,8 +15,8 @@ import (
|
||||
"github.com/labstack/echo/v4"
|
||||
promise "github.com/nlepage/go-js-promise"
|
||||
"github.com/onsonr/sonr/nebula/pages"
|
||||
"github.com/onsonr/sonr/x/vault/client/dwn/middleware"
|
||||
"github.com/onsonr/sonr/x/vault/client/dwn/state"
|
||||
"github.com/onsonr/sonr/x/vault/client/htmx/middleware"
|
||||
"github.com/onsonr/sonr/x/vault/client/htmx/state"
|
||||
)
|
||||
|
||||
func main() {
|
||||
@@ -2,7 +2,6 @@ package state
|
||||
|
||||
import (
|
||||
"github.com/labstack/echo/v4"
|
||||
middleware "github.com/onsonr/sonr/x/vault/client/dwn/middleware"
|
||||
)
|
||||
|
||||
func RegisterHandlers(e *echo.Echo) {
|
||||
@@ -15,8 +14,3 @@ func RegisterHandlers(e *echo.Echo) {
|
||||
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"))
|
||||
}
|
||||
Reference in New Issue
Block a user