mirror of
https://github.com/sonr-io/sonr.git
synced 2026-08-03 01:41:44 +00:00
feature/1125 offload sync service worker (#1144)
- **feat: provide access to block time** - **refactor: move block expiry calculation to helper function** - **feat: register decentralized web node HTMX views** - **feat: Reorganize methods in layout.templ file alphabetically** - **feat: add support for layout variants** - **feat: update Allocate RPC to use GET request with path parameters** - **feat: add gRPC Gateway endpoint for Allocate** - **refactor: rename SyncCurrent to Sync** - **feat: improve code organization by making vault assembly private** - **feat: add a new method for syncing DID documents**
This commit is contained in:
@@ -7,6 +7,7 @@ import (
|
||||
"github.com/onsonr/sonr/pkg/workers/handlers"
|
||||
)
|
||||
|
||||
// RegisterWebNodeAPI registers the Decentralized Web Node API routes.
|
||||
func RegisterWebNodeAPI(e *echo.Echo) {
|
||||
g1 := e.Group("api")
|
||||
g1.GET("/register/:subject/start", handlers.Auth.RegisterSubjectStart)
|
||||
@@ -22,6 +23,7 @@ func RegisterWebNodeAPI(e *echo.Echo) {
|
||||
g1.POST("/:origin/grant/:subject", handlers.OpenID.GrantAuthorization)
|
||||
}
|
||||
|
||||
// RegisterWebNodeViews registers the Decentralized Web Node HTMX views.
|
||||
func RegisterWebNodeViews(e *echo.Echo) {
|
||||
e.File("/", "index.html")
|
||||
e.GET("/#", authentication.CurrentViewRoute)
|
||||
|
||||
Reference in New Issue
Block a user