Skip to content

createServer

function createServer(__namedParameters?): Promise<FastifyInstance<Server<typeof IncomingMessage, typeof ServerResponse>, IncomingMessage, ServerResponse<IncomingMessage>, FastifyBaseLogger, FastifyTypeProviderDefault>>;

Defined in: server.ts:22

Create a Fastify server with the AI routes registered under /api. Defaults to a new Services container when none is provided.

Parameter Type
__namedParameters CreateAppOptions

Promise<FastifyInstance<Server<typeof IncomingMessage, typeof ServerResponse>, IncomingMessage, ServerResponse<IncomingMessage>, FastifyBaseLogger, FastifyTypeProviderDefault>>