Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const fastify = require('fastify')()
- fastify.get('/', {
- schema: {
- response: {
- 200: {
- type: 'object',
- properties: {hello: {type: 'string'}}
- }
- }
- }
- }, (req, reply) => reply.send({ hello: 'world' }))
- fastify.listen(3000)
Add Comment
Please, Sign In to add comment