UNPKG

@fastify/autoload

Version:
19 lines (13 loc) 295 B
'use strict' const fp = require('fastify-plugin') function plugin (f, opts, next) { f.get('/plugin-g', (request, reply) => { const data = request.urlData() reply.send(data) }) next() } module.exports = fp(plugin, { name: 'plugin-g', dependencies: ['@fastify/url-data'] })