sensible.js 309 B

1234567891011121314
  1. 'use strict'
  2. const fp = require('fastify-plugin')
  3. /**
  4. * This plugins adds some utilities to handle http errors
  5. *
  6. * @see https://github.com/fastify/fastify-sensible
  7. */
  8. module.exports = fp(async function (fastify, opts) {
  9. fastify.register(require('@fastify/sensible'), {
  10. errorHandler: false
  11. })
  12. })