strong-tie/inbound-calls
0
1'use strict'2 3const fastify = require('../fastify')({ logger: true })4 5const opts = {6 schema: {7 response: {8 '2xx': {9 type: 'object',10 properties: {11 hello: {12 type: 'string'13 }14 }15 }16 }17 }18}19fastify.register(require('./plugin'), opts, function (err) {20 if (err) {21 throw err22 }23})24 25fastify.listen({ port: 3000 }, function (err) {26 if (err) {27 throw err28 }29})30 