File size: 283 Bytes
23ac194
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
'use strict'

const fp = require('fastify-plugin')
const fastify = require('../../../../')()

fastify.get('/', function (request, reply) {
  reply.send({ hello: 'world' })
})

fastify.register(fp((instance, opts, done) => {
  done()
}, { fastify: '9.x' }))

module.exports = fastify