page cw
This commit is contained in:
14
plugins/sensible.js
Normal file
14
plugins/sensible.js
Normal file
@@ -0,0 +1,14 @@
|
||||
'use strict'
|
||||
|
||||
const fp = require('fastify-plugin')
|
||||
|
||||
/**
|
||||
* This plugins adds some utilities to handle http errors
|
||||
*
|
||||
* @see https://github.com/fastify/fastify-sensible
|
||||
*/
|
||||
module.exports = fp(async function (fastify, opts) {
|
||||
fastify.register(require('@fastify/sensible'), {
|
||||
errorHandler: false
|
||||
})
|
||||
})
|
||||
Reference in New Issue
Block a user