Skip to main content

httpd/router

Api Code Documentation / Exports / httpd/router

Table of contents

Functions

Functions

registerRoutes

registerRoutes(server, conn, urlPrefix, blockchainProtocol, blockchainHost, blockchainPort, storageServiceClient, invalidateCache): FastifyInstance<RawServerDefault, IncomingMessage, ServerResponse<IncomingMessage>, FastifyBaseLogger, FastifyTypeProviderDefault>

Parameters

NameType
serverFastifyInstance<RawServerDefault, IncomingMessage, ServerResponse<IncomingMessage>, FastifyBaseLogger, FastifyTypeProviderDefault>
connConnToken
urlPrefixstring
blockchainProtocol"http" | "https"
blockchainHoststring
blockchainPortnumber
storageServiceClientdefault
invalidateCache() => void

Returns

FastifyInstance<RawServerDefault, IncomingMessage, ServerResponse<IncomingMessage>, FastifyBaseLogger, FastifyTypeProviderDefault>

Defined in

src/httpd/router.ts:220