UNPKG

fastify-cli

Version:

Run a fastify route with one command!

10 lines (7 loc) 240 B
import { FastifyPluginAsync } from "fastify" const example: FastifyPluginAsync =async (fastify, opts): Promise<void> => { fastify.get('/', async function (request, reply) { return 'this is an example' }) } export default example;