@ts-kizuna/fastify
v1.64.1
Published
Fastify adapter for ts-kizuna
Downloads
2,665
Readme
@ts-kizuna/fastify
@ts-kizuna/fastify connects a ts-kizuna API to a Fastify application.
Requires Fastify >= 5.
Installation
pnpm add @ts-kizuna/fastify fastifyUsage
import Fastify from 'fastify';
import { KizunaServer } from '@ts-kizuna/fastify';
import { contract } from './contract';
import { router } from './router';
const server = new KizunaServer(contract);
const api = server.api({
router,
});
const app = Fastify();
await api.mount(app);
app.listen({
port: 3000,
});