()
| 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++ |