Spaces:
Runtime error
Runtime error
Download api/src/plugins/file-storage.ts from supernovagateway/Steel: direct link, hf CLI and curl.
- Browser
- Download file 375 Bytes
-
https://huggingface.co/spaces/supernovagateway/Steel/resolve/main/api/src/plugins/file-storage.ts
- Command line
-
hf download hf://spaces/supernovagateway/Steel/api/src/plugins/file-storage.ts
-
curl -L -o file-storage.ts https://huggingface.co/spaces/supernovagateway/Steel/resolve/main/api/src/plugins/file-storage.ts
375 Bytes
| 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"); | |