sonr/internal/vault/routes.go

18 lines
439 B
Go

//go:build js && wasm
// +build js,wasm
// 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"
)
// RegisterRoutes registers the Decentralized Web Node API routes.
func RegisterRoutes(e *echo.Echo, config *motr.Config) {
e.Use(context.Middleware(config))
}