MCPcopy Create free account
hub / github.com/fastify/fastify / plugin

Function plugin

test/hooks-async.test.js:848–851  ·  view source on GitHub ↗
(fastify, opts)

Source from the content-addressed store, hash-verified

846 fastify.get('/', (req, reply) => reply.send('ok'))
847
848 async function plugin (fastify, opts) {
849 fastify.decorate('foo', 'bar')
850 fastify.get('/nested', (req, reply) => reply.send('ok'))
851 }
852
853 await fastify.inject({ method: 'GET', path: '/' })
854 await fastify.inject({ method: 'GET', path: '/nested' })

Callers

nothing calls this directly

Calls 1

sendMethod · 0.80

Tested by

no test coverage detected