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

Function setNotFoundHandler

fastify.js:715–720  ·  view source on GitHub ↗
(opts, handler)

Source from the content-addressed store, hash-verified

713 }
714
715 function setNotFoundHandler (opts, handler) {
716 throwIfAlreadyStarted('Cannot call "setNotFoundHandler"!')
717
718 fourOhFour.setNotFoundHandler.call(this, opts, handler, avvio, router.routeHandler)
719 return this
720 }
721
722 function setValidatorCompiler (validatorCompiler) {
723 throwIfAlreadyStarted('Cannot call "setValidatorCompiler"!')

Callers

nothing calls this directly

Calls 1

throwIfAlreadyStartedFunction · 0.85

Tested by

no test coverage detected