generated from nhcarrigan/template
19 lines
436 B
TypeScript
19 lines
436 B
TypeScript
/**
|
|
* @copyright 2026 NHCarrigan
|
|
* @license Naomi's Public License
|
|
* @author Naomi Carrigan
|
|
*/
|
|
|
|
import { FastifyInstance } from 'fastify';
|
|
import fp from 'fastify-plugin';
|
|
import sensible from '@fastify/sensible';
|
|
|
|
/**
|
|
* This plugins adds some utilities to handle http errors
|
|
*
|
|
* @see https://github.com/fastify/fastify-sensible
|
|
*/
|
|
export default fp(async function (fastify: FastifyInstance) {
|
|
fastify.register(sensible);
|
|
});
|