Skip to main content

RequestWithAgentRouter() function

Creates an expressjs router that adds a Veramo agent to the request object.

This is needed by all other routers provided by this package to be able to perform their functions.

Signature:

RequestWithAgentRouter: (options: RequestWithAgentRouterOptions) => Router

Parameters

ParameterTypeDescription
optionsRequestWithAgentRouterOptionsInitialization option

Returns:

Router

Expressjs router