Skip to main content

httpd/server

Api Code Documentation / Exports / httpd/server

Table of contents

Functions

Functions

addGroupsPreHandler

addGroupsPreHandler(server, conn, groupsFn): Promise<void>

Parameters

NameType
serverFastifyInstance<RawServerDefault, IncomingMessage, ServerResponse<IncomingMessage>, FastifyBaseLogger, FastifyTypeProviderDefault>
connConnToken
groupsFn(conn: ConnToken, ctx: Ctx, serviceUser: ServiceUser, targetUserId: string) => Promise<Type<Group[]>>

Returns

Promise<void>

Defined in

src/httpd/server.ts:118


createBasicApp

createBasicApp(jwt, urlPrefix, apiPort, accessControlAllowOrigin, rateLimit): FastifyInstance<RawServerDefault, IncomingMessage, ServerResponse<IncomingMessage>, FastifyBaseLogger, FastifyTypeProviderDefault>

Parameters

NameType
jwtJwtConfig
urlPrefixstring
apiPortnumber
accessControlAllowOriginstring
rateLimitundefined | number

Returns

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

Defined in

src/httpd/server.ts:205