Skip to main content

httpd/router

Api Code Documentation / Exports / httpd/router

Table of contents#

Functions#

Functions#

registerRoutes#

registerRoutes(server, conn, urlPrefix, blockchainHost, blockchainPort, storageServiceClient, invalidateCache): FastifyInstance<Server, IncomingMessage, ServerResponse, FastifyLoggerInstance>

Parameters#

NameType
serverFastifyInstance<Server, IncomingMessage, ServerResponse, FastifyLoggerInstance>
connConnToken
urlPrefixstring
blockchainHoststring
blockchainPortnumber
storageServiceClientdefault
invalidateCache() => void

Returns#

FastifyInstance<Server, IncomingMessage, ServerResponse, FastifyLoggerInstance>

Defined in#

src/httpd/router.ts:208