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

Function addConstraintStrategy

lib/route.js:127–130  ·  view source on GitHub ↗
(strategy)

Source from the content-addressed store, hash-verified

125 }
126
127 function addConstraintStrategy (strategy) {
128 throwIfAlreadyStarted('Cannot add constraint strategy!')
129 return router.addConstraintStrategy(strategy)
130 }
131
132 function hasConstraintStrategy (strategyName) {
133 return router.hasConstraintStrategy(strategyName)

Callers

nothing calls this directly

Calls 2

throwIfAlreadyStartedFunction · 0.85
addConstraintStrategyMethod · 0.80

Tested by

no test coverage detected