MCPcopy
hub / github.com/fastify/fastify / patchTheRoute

Function patchTheRoute

test/hooks.test.js:682–684  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

680 // a plugin that patches route options, similar to fastify-compress
681 fastify.register(fp(function myPlugin (instance, opts, next) {
682 function patchTheRoute () {
683 routePatched++
684 }
685
686 instance.addHook('onRoute', function (routeOptions) {
687 onRouteCalled++

Callers 1

hooks.test.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected