Skip to content

Instantly share code, notes, and snippets.

@PavelPolyakov
Last active January 21, 2019 09:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save PavelPolyakov/8f1ba99f8d1055496565be5ce2869af7 to your computer and use it in GitHub Desktop.
Save PavelPolyakov/8f1ba99f8d1055496565be5ce2869af7 to your computer and use it in GitHub Desktop.
// at the top
import errorThrowerRoutes from "./modules/routes/error-thrower";
// make server more verbose
const server: fastify.FastifyInstance<
Server,
IncomingMessage,
ServerResponse
> = fastify({logger:true});
// after the server is created
server.register(errorThrowerRoutes);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment