UNPKG

fastify-cli

Version:

Run a fastify route with one command!

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