httpd/server
Api Code Documentation / Exports / httpd/server
Table of contents
Functions
Functions
addGroupsPreHandler
▸ addGroupsPreHandler(server
, conn
, groupsFn
): Promise
<void
>
Parameters
Name | Type |
---|---|
server | FastifyInstance <RawServerDefault , IncomingMessage , ServerResponse <IncomingMessage >, FastifyBaseLogger , FastifyTypeProviderDefault > |
conn | ConnToken |
groupsFn | (conn : ConnToken , ctx : Ctx , serviceUser : ServiceUser , targetUserId : string ) => Promise <Type <Group []>> |
Returns
Promise
<void
>
Defined in
createBasicApp
▸ createBasicApp(jwt
, urlPrefix
, apiPort
, accessControlAllowOrigin
, rateLimit
): FastifyInstance
<RawServerDefault
, IncomingMessage
, ServerResponse
<IncomingMessage
>, FastifyBaseLogger
, FastifyTypeProviderDefault
>
Parameters
Name | Type |
---|---|
jwt | JwtConfig |
urlPrefix | string |
apiPort | number |
accessControlAllowOrigin | string |
rateLimit | undefined | number |
Returns
FastifyInstance
<RawServerDefault
, IncomingMessage
, ServerResponse
<IncomingMessage
>, FastifyBaseLogger
, FastifyTypeProviderDefault
>