UNPKG

@fastify/autoload

Version:
14 lines (10 loc) 297 B
import url from 'node:url' import path from 'node:path' import fastifyAutoload from '../../../index.js' export default function (fastify, opts, next) { fastify.register(fastifyAutoload, { dir: path.dirname(url.fileURLToPath(import.meta.url)) }) next() } export const autoload = false