fastify-cli
Version:
Run a fastify route with one command!
17 lines (13 loc) • 397 B
JavaScript
const { runFastify } = require('./start')
module.exports = {
build (args, additionalOptions = {}, serverOptions = {}, serverModule = undefined) {
Object.defineProperty(additionalOptions, 'ready', {
value: true,
enumerable: false,
writable: false
})
return runFastify(args, additionalOptions, serverOptions, serverModule)
},
listen: runFastify
}