UNPKG

fastify-cli

Version:

Run a fastify route with one command!

20 lines (17 loc) 285 B
'use strict' module.exports = function (fastify, options, next) { fastify.get('/', function (req, reply) { reply.send({ hello: 'world' }) }) next() } module.exports.options = { logger: { redact: { censor: '***', paths: [ 'foo' ] } } }