mirror of
https://github.com/onsonr/sonr.git
synced 2025-03-10 13:07:09 +00:00
18 lines
439 B
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))
|
|
}
|