enzostvs's picture
enzostvs HF staff
run prettier
5a8d324
raw
history blame contribute delete
441 Bytes
"use strict";
const path = require("node:path");
const AutoLoad = require("@fastify/autoload");
const options = {};
module.exports = async function (fastify, opts) {
fastify.register(AutoLoad, {
dir: path.join(__dirname, "plugins"),
options: Object.assign({}, opts),
});
fastify.register(AutoLoad, {
dir: path.join(__dirname, "routes"),
options: Object.assign({}, opts),
});
};
module.exports.options = options;