UNPKG

fastify-cli

Version:

Run a fastify route with one command!

10 lines (7 loc) 233 B
import { type FastifyPluginAsync } from 'fastify' const root: FastifyPluginAsync = async (fastify, opts): Promise<void> => { fastify.get('/', async function (request, reply) { return { root: true } }) } export default root