Spaces:
Runtime error
Runtime error
Download api/src/plugins/selenium.ts from supernovagateway/Steel: direct link, hf CLI and curl.
- Browser
- Download file 382 Bytes
-
https://huggingface.co/spaces/supernovagateway/Steel/resolve/main/api/src/plugins/selenium.ts
- Command line
-
hf download hf://spaces/supernovagateway/Steel/api/src/plugins/selenium.ts
-
curl -L -o selenium.ts https://huggingface.co/spaces/supernovagateway/Steel/resolve/main/api/src/plugins/selenium.ts
382 Bytes
| import { FastifyPluginAsync } from "fastify"; | |
| import fp from "fastify-plugin"; | |
| import { SeleniumService } from "../services/selenium.service.js"; | |
| const seleniumPlugin: FastifyPluginAsync = async (fastify, options) => { | |
| const seleniumService = new SeleniumService(fastify.log); | |
| fastify.decorate("seleniumService", seleniumService); | |
| }; | |
| export default fp(seleniumPlugin, "5.x"); | |