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.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
__namedParameters |
CreateAppOptions |
Returns
Section titled “Returns”Promise<FastifyInstance<Server<typeof IncomingMessage, typeof ServerResponse>, IncomingMessage, ServerResponse<IncomingMessage>, FastifyBaseLogger, FastifyTypeProviderDefault>>