Spaces:
Runtime error
Runtime error
File size: 375 Bytes
fb38ec5 | 1 2 3 4 5 6 7 8 9 10 11 | import { FastifyPluginAsync } from "fastify";
import fp from "fastify-plugin";
import { FileService } from "../services/file.service.js";
const fileStoragePlugin: FastifyPluginAsync = async (fastify, _options) => {
fastify.log.info("Registering file service");
fastify.decorate("fileService", FileService.getInstance());
};
export default fp(fileStoragePlugin, "5.x");
|