mirror of
https://github.com/onsonr/sonr.git
synced 2025-03-10 21:09:11 +00:00
18 lines
445 B
Go
18 lines
445 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/internal/vault/types"
|
|
)
|
|
|
|
// RegisterRoutes registers the Decentralized Web Node API routes.
|
|
func RegisterRoutes(e *echo.Echo, config *types.Config) {
|
|
e.Use(context.Middleware(config))
|
|
}
|