MCPcopy
hub / github.com/fastify/fastify / hasRoute

Function hasRoute

lib/route.js:177–184  ·  view source on GitHub ↗
({ options })

Source from the content-addressed store, hash-verified

175 }
176
177 function hasRoute ({ options }) {
178 const normalizedMethod = options.method?.toUpperCase() ?? ''
179 return router.hasRoute(
180 normalizedMethod,
181 options.url || '',
182 options.constraints
183 )
184 }
185
186 function findRoute (options) {
187 const route = router.find(

Callers

nothing calls this directly

Calls 1

hasRouteMethod · 0.80

Tested by

no test coverage detected