UNPKG

fastify-cli

Version:

Run a fastify route with one command!

8 lines (6 loc) 212 B
'use strict' // This is a counter example. WILL NOT WORK! // we are creating an unhandledRejection on purpose module.exports = function (fastify, opts, next) { Promise.reject(new Error('there is no catch')) }