Last active
January 21, 2019 09:03
-
-
Save PavelPolyakov/8f1ba99f8d1055496565be5ce2869af7 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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
refers to https://medium.com/car2godevs/fastify-with-typescript-production-ready-integration-2303318ecd9e