Spaces:
Running
Running
File size: 279 Bytes
f4aba6e |
1 2 3 4 5 6 7 8 9 10 11 12 13 |
'use strict'
const fp = require('fastify-plugin')
// the use of fastify-plugin is required to be able
// to export the decorators to the outer scope
module.exports = fp(async function (fastify, opts) {
fastify.decorate('someSupport', function () {
return 'hugs'
})
})
|