Files
sonr/internal/vault/routes.go
T

18 lines
439 B
Go
Raw Permalink Normal View History

//go:build js && wasm
// +build js,wasm
2024-12-05 20:36:58 -05:00
// Package vault provides the routes for the Decentralized Web Node (...or Sonr Motr).
package vault
import (
"github.com/labstack/echo/v4"
"github.com/onsonr/sonr/internal/vault/context"
"github.com/onsonr/sonr/pkg/config/motr"
)
2024-12-05 20:36:58 -05:00
// RegisterRoutes registers the Decentralized Web Node API routes.
func RegisterRoutes(e *echo.Echo, config *motr.Config) {
e.Use(context.Middleware(config))
}