Spaces:
Runtime error
Runtime error
File size: 441 Bytes
5a8d324 f4aba6e 5a8d324 f4aba6e 5a8d324 f4aba6e 5a8d324 f4aba6e 5a8d324 f4aba6e 5a8d324 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
"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;
|