MCPcopy
hub / github.com/fastify/fastify / addConstraintStrategy

Function addConstraintStrategy

lib/route.js:133–136  ·  lib/route.js::addConstraintStrategy
(strategy)

Source from the content-addressed store, hash-verified

131 }
132
133 function addConstraintStrategy (strategy) {
134 throwIfAlreadyStarted(class="st">'Cannot add constraint strategy!')
135 return router.addConstraintStrategy(strategy)
136 }
137
138 function hasConstraintStrategy (strategyName) {
139 return router.hasConstraintStrategy(strategyName)

Callers

nothing calls this directly

Calls 2

throwIfAlreadyStartedFunction · 0.85
addConstraintStrategyMethod · 0.80

Tested by

no test coverage detected