MCPcopy
hub / github.com/fastify/fastify / setNotFoundHandler

Function setNotFoundHandler

fastify.js:722–727  ·  fastify.js::setNotFoundHandler
(opts, handler)

Source from the content-addressed store, hash-verified

720 }
721
722 function setNotFoundHandler (opts, handler) {
723 throwIfAlreadyStarted(class="st">'Cannot call "setNotFoundHandler"!')
724
725 fourOhFour.setNotFoundHandler.call(this, opts, handler, avvio, router.routeHandler)
726 return this
727 }
728
729 function setValidatorCompiler (validatorCompiler) {
730 throwIfAlreadyStarted(class="st">'Cannot call "setValidatorCompiler"!')

Callers

nothing calls this directly

Calls 1

throwIfAlreadyStartedFunction · 0.85

Tested by

no test coverage detected