MCPcopy
hub / github.com/fastify/fastify / validateParams

Function validateParams

test/find-route.test.js:118–123  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

116
117 function validateRoutePlugin (instance, opts, done) {
118 const validateParams = function () {
119 return instance.findRoute({
120 method: 'GET',
121 url: '/artists/:artistId'
122 }) !== null
123 }
124 instance.decorate('validateRoutes', { validateParams })
125 done()
126 }

Callers

nothing calls this directly

Calls 1

findRouteMethod · 0.80

Tested by

no test coverage detected